如何从鼠标选择后从tmux输出复制到系统剪贴板? [英] How to copy to system clipboard from tmux output after mouse selection?
问题描述
现在要复制到系统剪贴板我必须通过鼠标文本在tmux窗口中选择 Shift
键。然后我必须运行这个命令:
Now for copy to system clipboard I have to select via mouse text in tmux window with Shift
key. And then I have to run this command:
tmux save-buffer - | reattach-to-user-namespace pbcopy
有任何机会更容易保存到系统剪贴板吗?
Is any chance to save to system clipboard easier? Key bind or better do that automatically after Shift release.
我的tmux配置: https: //gist.github.com/3641580
推荐答案
如果您使用iTerm2,可以在Tmux
If you are using iTerm2, you can copy text in Tmux session, holding down the Option key while dragging the mouse to make selection.
然后,应该可以在 Option 键的任何地方粘贴文本。 Cmd + V 。
在这里找到: http://web.archive.org/web/20131226003700/http://ootput.wordpress.com/2013/08/02/copy-and-paste-in-tmux-with - 小鼠/
Then it should be possible to paste text anywhere with Cmd + V as usual. Found it here: http://web.archive.org/web/20131226003700/http://ootput.wordpress.com/2013/08/02/copy-and-paste-in-tmux-with-mouse/
这篇关于如何从鼠标选择后从tmux输出复制到系统剪贴板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!