Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'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"



The 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.


I'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: