How can i copy tmux output to system clipboard? [closed]

点点圈 提交于 2020-01-15 05:55:09

问题


I want to copy a large section to the file in tmux. Then I enter the tmux vi mode, and copy the selected strings. However, the system clipboard is empty. How can I copy the selected strings to system clipboard? Thanks.


回答1:


Assuming this is a local instance of tmux, you could add a binding like this: bind C-c run "tmux save-buffer - | clipboad_manager_of_your_choice"
Where you would fill in the manager of your choice (xclip, xsel, if you are on mac pbcopy, etc)



来源:https://stackoverflow.com/questions/16765716/how-can-i-copy-tmux-output-to-system-clipboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!