【发布时间】:2017-09-12 08:48:38
【问题描述】:
我在我的 tmux 配置中为synchronize-panes 窗口选项绑定了一个键。我还想用相同的按键显示相同选项的当前状态。到目前为止,我已经尝试过:
# 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"
【问题讨论】:
标签: linux configuration configuration-files tmux