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"