I am using Ubuntu 16.04 with tmux 2.1. Mostly I split the screen in two tmux windows split vertically. Frequently I need to copy long pieces of text from tmux window and paste in sublime text/browser. I have a feeling that xsel/xclip could be used to achieve the same. However, most of the how-to's floating in the Internet are severely bloated, trying to explain intricate configuration option without really explaining:
tmux.conf
?I don't want to be a tmux guru. All I want to get the job done in simplest possible way. Any clue how to do that?
I personally am using Ubuntu 18.04 in WSL2 . However this solution will work on Ubuntu 16.04 also.
I have been using tmux-yank
for copything text from tmux buffer to system clipboard.
You would first need to set up Tmux Plugin Manager
. Follow this link.
Then set add tmux-yank
plugin to your .tmux.conf
file , see here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With