I sometimes run a command like this to set the system clipboard, because I want to paste the result of whatevercommand
into a text editor, terminal, or whatnot.
whatevercommand | xclip -selection c
But this uses the X clipboard, and if I'm on a remote system with no X, this won't work. Instead I often use tmux on remote systems.
So is there a similar command that I can use to set tmux's clipboard?
I'm thinking something like:
whatevercommand | tmux set-clipboard