How can i copy tmux output to system clipboard? [c

2019-07-11 21:26发布

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条回答
仙女界的扛把子
2楼-- · 2019-07-11 22:06

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)

查看更多
登录 后发表回答