Tmux was just updated to 3.0 on my system, and a few of the settings are broken now.
set -g status-right " #P "
used to display the pane number in the right hand corner. Now it does not work. I receive the error, .tmux.conf:6: usage: set-option [-aFgopqsuw] [-t target-pane] option [value]
After the error all of the customizations to the status bar are not applied. If I start a session and then apply the customizations the error does not reproduce itself. How may I display the pane number with the current version of tmux?
Here's the rest of the lines in question. set-option -g status-position top
is where the error occurs in the config file if set -g status-right " #P "
is included.
set-option -g status-position top
set -g status-bg '#666666'
set -g status-fg '#aaaaaa'
set -g status-left-length 50
set -g status-right " #{pane_index} "
If I take all of the -g
out everything breaks. The last line breaks with or without the -g
.
I start tmux in my .zshrc.zsh
file with:
getTerminalEmulatorName()
{
echo $(basename "/"$(ps -f -p $(cat /proc/$(echo $$)/stat \
| cut -d \ -f 4) | tail -1 | sed 's/^.* //'))
}
if _not_inside_tmux && [[ -z $(tmux display-message -p `#S`) ]]; then
tmux new-session -y 32 -d -n Dropdown -s Command;
tmux splitw -h -p 50 -t 0
fi
terminal=$( getTerminalEmulatorName )
if [[ $terminal == *"alacritty"* ]]; then
tmux attach-session -t Command
fi