Guest User

Untitled

a guest
Jun 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # Configure your default shell, Zsh in my case.
  2. set -g default-shell $SHELL
  3.  
  4. # Override the default command to use `reattach-to-user-namespace` for
  5. # everything.
  6. set -g default-command "reattach-to-user-namespace -l ${SHELL}"
  7.  
  8. # Bind ']' to use pbbaste
  9. bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
  10.  
  11. # Vim style navigation in copy mode
  12. set-window-option -g mode-keys vi
  13. bind-key -T copy-mode-vi 'v' send -X begin-selection
  14. bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
  15.  
  16. # Enable mouse globally# Enable mouse globally
  17. set -g mouse on
  18.  
  19. # New window with default path set to last path
  20. bind-key '"' split-window -c "#{pane_current_path}"
  21. bind-key % split-window -h -c "#{pane_current_path}"
  22. bind-key c new-window -c "#{pane_current_path}"
  23.  
  24. # Toggle mouse on with ^B m
  25. bind-key m \
  26. set -g mouse on \;\
  27. display 'Mouse: ON'
  28.  
  29. # Toggle mouse off with ^B M
  30. bind-key M \
  31. set -g mode off \;\
  32. display 'Mouse: OFF'
Add Comment
Please, Sign In to add comment