Tmux stops responding to key bindings after xclip usage
Instead of:
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
I ended up using this code:
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
With such a binding to copy something to the X clipboard:
- Press
CTRL + b + [
- Hit the
SPACE
- Select the text using
vi-mode
key combinations - Instead of
Enter
I hity
and without any freezes text goes to the system clipboard.