2
我在我的tmux配置中为synchronize-panes
窗口选项绑定了一个密钥。我也想用相同的按键显示相同选项的当前状态。到目前为止,我曾尝试:在tmux显示消息中显示选项的当前值
# one or more of the following
bind-key S run-shell "tmux setw synchronize-panes; TMUX_STATUS=`tmux showw synchronize-panes`;tmux display-message $TMUX_STATUS"
bind-key S "setw synchronize-panes; display-message `showw synchronize-panes`"
bind-key S run-shell "tmux setw synchronize-panes; TMUX_STATUS=$(tmux showw synchronize-panes); tmux display-message $TMUX_STATUS"