How to make tmux work with system clipboard ubuntu

From razwiki
Jump to navigation Jump to search

Add this to ~/.tmux.conf

bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'

https://unix.stackexchange.com/questions/131011/use-system-clipboard-in-vi-copy-mode-in-tmux