3 ms·
I am curious to hear about your experience. What OS and terminal emulator do you use? Do you run tmux on a remote host that you SSH into? If your terminal emul
by ianthehenry 6y ago
I am curious to hear about your experience. What OS and terminal emulator do you use? Do you run tmux on a remote host that you SSH into?
If your terminal emulator doesn't support copy escape codes, and you're running it on a remote server, you need to ssh with X forwarding in order to share your system clipboard.
I realized over the course of this thread that I know a weird amount about configuring tmux. I rely on this feature pretty heavily, so I've had to set up system clipboard integration on Mac and Linux across on multiple different terminal emulators. I'd be happy to help you get a config that works on your system, if you want.
- nobleach 6y agoI've used quite a few combinations over the last few years. These days I'm using Termite locally on Linux. In the past I've used iTerm on macOS/OSX. To be very clear here, I can copy text from pane to pane. (using control+] to paste) Judging by some recently commented lines in my tmux.conf. I've tried: # bind C-y run "tmux save-buffer - | xclip -selection c"\; display-message "Buffer copied to clipboard" # bind y "xsel -i --clipboard" # bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip"
- ianthehenry 6y agoThe last one looks pretty close to working, but I don't know if xclip works with no arguments. This is what I use: bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -i -selection clipboard" That should just work if you're running tmux locally, or if you're connected to a remote session with X forwarding.
- nobleach 6y agoI'll definitely give it a shot. Although I didn't reply to this thread expecting "tech-support", it certainly is appreciated when fellow tech folks are willing to share what they've learned. So, thank you.