You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to follow a guide in which it's explained how to get copy/paste working without shift.
but with the following config :
set -g mouse on
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @yank_action 'copy-pipe-no-clear'
set -g @override_copy_command 'xsel -i --clipboard'
set -g @yank_selection_mouse 'primary'
set -g @yank_selection 'primary'
bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
I'm expecting to select something with the mouse, press y or Control-c, then go to any other app, press Control-v and have my selection pasted, but nothing happens.
Change @yank_selection_mouse from primary to clipboard. I think that does the trick ;)
Also @override_copy_command should not be necessary then. On the other hand, @override_copy_command should already have overruled @yank_selection_mouse from my understanding.
Are you using tmux through an ssh session? In that case xsel (or any other clipboard program) does not work.
Activity
yankee14 commentedon Nov 1, 2023
I have had the same issue for about 2-3 years now, just been dealing with yank not working. Have you ever found a way to resolve it?
anakimluke commentedon Nov 26, 2023
Change
@yank_selection_mousefromprimarytoclipboard. I think that does the trick ;)x3rAx commentedon Jun 3, 2025
Also
@override_copy_commandshould not be necessary then. On the other hand,@override_copy_commandshould already have overruled@yank_selection_mousefrom my understanding.Are you using tmux through an
sshsession? In that casexsel(or any other clipboard program) does not work.yegorich commentedon Aug 13, 2025
@x3rAx what is the solution for
tmuxoverssh?