Confirm a tmux option is set

Solution 1:

Those options are window options, so you need show-options -gw (or show-options -w if they have been customized for a particular window).


The confusion probably comes from the fact that while set-option -g is ostensibly just for setting session options, it will also accept window option names (i.e. for convenience you can omit the -w that would otherwise be required when setting a window option).

If you care to document this distinction you might want to use set-option -gw … (or set-window-option -g …) when adjusting window options.