我在.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.
所以我只能抑制将执行重定向到其他窗格?