Debian 11 tmux 3.1rc 修复invalid option
升级完后,tmux打开会报错
/etc/tmux.conf:91: invalid option: window-status-fg
/etc/tmux.conf:92: invalid option: window-status-bg
/etc/tmux.conf:93: invalid option: window-status-attr
/etc/tmux.conf:96: invalid option: window-status-current-fg
/etc/tmux.conf:97: invalid option: window-status-current-bg
/etc/tmux.conf:98: invalid option: window-status-current-attr
/etc/tmux.conf:101: invalid option: pane-border-fg
/etc/tmux.conf:102: invalid option: pane-border-bg
/etc/tmux.conf:103: invalid option: pane-active-border-fg
/etc/tmux.conf:107: invalid option: message-fg
/etc/tmux.conf:108: invalid option: message-bg
/etc/tmux.conf:109: invalid option: message-attr
只需要改一下报错的参数
把 window-status-fg 改成 window-status-style fg=
其他类似
setw -g window-status-style fg=cyan
setw -ga window-status-style bg=default
setw -ga window-status-style dim
setw -g window-status-current-style fg=white
setw -ga window-status-current-style bg=black
setw -ga window-status-current-style bright
set -g pane-border-style fg=green
set -ga pane-border-style bg=black
set -g pane-active-border-style fg=white
set -ga pane-active-border-style bg=yellow
set -g message-style fg=white
set -ga message-style bg=black
set -ga message-style bright
set-window-option -g window-status-current-style bg=black
set-window-option -ga window-status-current-style fg=yellow
set-window-option -ga window-status-current-style dim