在 shell 环境中工作时,我经常遇到需要复制“中间管道输出”的情况(例如,从/到已经运行的编辑器、其他 shell、其他机器等)。
在窗口环境中,解决此问题的简单(通用)方法通常是通过系统剪贴板,例如:
... | xsel -i
xsel -o | ...
... | pbcopy
pbpaste | ...
如何使用 tmux 复制/粘贴工具获得类似的方便行为?
shell terminal-multiplexer terminal pipe tmux
pipe ×1
shell ×1
terminal ×1
terminal-multiplexer ×1
tmux ×1