当前位置: 代码迷 >> 综合 >> Debian 11 tmux 3.1rc 修复invalid option
  详细解决方案

Debian 11 tmux 3.1rc 修复invalid option

热度:89   发布时间:2023-12-08 02:55:35.0

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
  相关解决方案