r/tmux • u/greenspywork • 12d ago
Tip Copy and Paste to Linux from Mac thru SSH
In case anyone runs into similar issues, I used the below .tmux.config to allow copying and pasting from a TMUX session running on Linux, which I SSH'd to from Mac. This is with mouse selection, and Cmd-c to copy. Automatic copy of whatever is selected doesn't work for me. Of course, if someone has a better set up, let me know.
# ~/.tmux.conf
set -g mouse off
set -g set-clipboard on
7
Upvotes
1
u/liberforce 8d ago
I only discovered a couple of weeks ago that with Term, you need to use Fn + mouse selection to be able to copy with Cmd + C.
1
u/greenspywork 6d ago
Giving iterm2 a try and already working better after enabling clipboard access.
1
u/yoshiatsu 10d ago
I use this:
With this .tmuxrc