Advertisement
asanchez75

.tmux.conf

Nov 13th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ## tmux < 2.4
  2. set-option -g allow-rename off
  3. set-window-option -g mode-keys vi
  4. bind-key -T copy-mode-vi 'v' send -X begin-selection
  5. bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
  6. bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
  7.  
  8. ## tmux => 2.4
  9. set-option -g allow-rename off
  10. set-window-option -g mode-keys vi
  11. bind P paste-buffer
  12. bind-key -T copy-mode-vi v send-keys -X begin-selection
  13. bind-key -T copy-mode-vi y send-keys -X copy-selection
  14. bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
  15. bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -selection clipboard -in'
  16.  
  17. # mac
  18. set -g default-shell $SHELL
  19. set -g default-command "reattach-to-user-namespace -l ${SHELL}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement