3 ms·
'xclip -selection clipboard' works fine for this use case. [Edit] Assuming you have SSH configured to forward to your local X server [0]. [0] http://unix.stac
by jdormit 10y ago
'xclip -selection clipboard' works fine for this use case.
[Edit] Assuming you have SSH configured to forward to your local X server [0].
[0] http://unix.stackexchange.com/a/16697 http://unix.stackexchange.com/a/16697
- aidenn0 10y agoUnfortunately many ssh servers gratuitously disallow X11 forwarding; tcp forwarding can accomplish the same, but then setting up DISPLAY &ct. need to be done manually.
- fpqc 10y agoIn the latest git builds of tmux (with the latest terminfo db from ncurses), you can have clipboards propagate from remote tmux to local tmux (nested configuration) using the new OSC52 control sequence implemented in a patch from 2 weeks ago. Also, if your terminal emulator (rxvt, xterm on Linux and mintty on Windows) support OSC52 escape sequences for clipboard setting, this means you don't need X11 forwarding anymore, since you can set your X11 clipboard from tmux. If anyone can help me get in touch with the libvte people, I want to patch OSC 52 support in there as well, since this is a great feature that should _not_ be relying on X11 forwarding or whatever.