如何在tmux run-shell中抑制stout?

时间:2017-12-21 11:45:55

标签: shell tmux

我在.tmux.conf

中有约束力
bind -n M-W run -b "fish -c \"w #{pane_current_path}\""

在当前窗格中停止shell命令运行后,我得到结果"退回1"作为复制模式。我该如何压制这条消息?我无法在命令中将输出抑制为stdout,尝试将命令更改为:

bind -n M-W run -b "fish -c \"w #{pane_current_path}\" 2> /dev/null" does nothing.

从手册页我得到了:

After it finishes, any output to stdout is displayed in copy mode (in the pane specified by -t or the current pane if omitted). If the command doesn't return success, the exit status is also displayed.

所以我只能抑制将执行重定向到其他窗格?

0 个答案:

没有答案