tmux复制粘贴时使用的是tmux内置的buffer,可是有时需要用到系统复制粘贴,比如有时需要复制错误信息到chrome搜索,似乎就比较麻烦了,因为tmux buffer和系统clipboard是独立的,不能像我们平时习惯的那样,使用鼠标右键复制粘贴功能。而且也不支持鼠标选取右击选择复制粘贴。
有人使用y键绑定了快捷方式实现从tmux buffer中拷贝数据到系统clipborad,如下:
bind y run-shell "tmux show-buffer | xclip -sel clip -i" \; display-message "Copied tmux buffer to system clipboard"
这样就能使用prefix + y键实现从tmux buffer 中提取top数据(最后的buffer)拷贝到系统中。
另外一种方式是按住shift键,然后用鼠标选择,就能恢复系统原来的复制粘贴选项了。
2025年6月10日 20:31
Interestingly you write, I will address you'll find exciting and interesting things on similar topics. Kissimmee Bed Bug Treatment
2025年6月10日 20:44
I invite you to the page where see how much we have in common. Oviedo Pest Control
2025年6月10日 20:44
Your blogs further more each else volume is so entertaining further serviceable It appoints me befall retreat encore. I will instantly grab your rss feed to stay informed of any updates. Orlando Termite Treatment
2025年6月10日 20:44
In this case you will begin it is important, it again produces a web site a strong significant internet site: Deltona Pest Control
2025年7月01日 19:37
On my website you'll see similar texts, write what you think. seo agency