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.
My tmux config: https://gist.github.com/3641580
Use the 'Ctrl+spacebar' to start copying. Step 3. Move with the arrow keys to the position of the text you want to copy to. When you have finished selecting the text, press 'Alt+w' or 'Ctrl+w' to copy the text to a Tmux Buffer.
In order to save an entire tmux session, type prefix + Control + s .
copy-mode is the way to view history (and optionally copy stuff out of it). Just run: echo "set -g mouse on" >> ~/. tmux. conf and you'll be able to scroll.
If you are using iTerm2, you can copy text in Tmux session, holding down the Option key while dragging the mouse to make selection.
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/
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