Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## tmux < 2.4
- set-option -g allow-rename off
- set-window-option -g mode-keys vi
- bind-key -T copy-mode-vi 'v' send -X begin-selection
- bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
- bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
- ## tmux => 2.4
- set-option -g allow-rename off
- set-window-option -g mode-keys vi
- bind P paste-buffer
- bind-key -T copy-mode-vi v send-keys -X begin-selection
- bind-key -T copy-mode-vi y send-keys -X copy-selection
- bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
- bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -selection clipboard -in'
- # mac
- set -g default-shell $SHELL
- set -g default-command "reattach-to-user-namespace -l ${SHELL}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement