Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. unbind C-b
  2. set -g prefix C-z
  3. bind-key z send-prefix
  4.  
  5. # set -g mouse on
  6. setw -g window-status-current-style fg=white,bold,bg=red
  7. setw -g pane-border-style fg=green,bg=black
  8. setw -g pane-active-border-style fg=white,bg=red
  9. setw -g monitor-activity on
  10. set -g visual-activity on
  11.  
  12. bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
  13. bind h select-pane -L
  14. bind j select-pane -D
  15. bind k select-pane -U
  16. bind l select-pane -R
  17.  
  18. # repeat-time 500ms
  19. bind -r L resize-pane -R 5 # 向左扩展
  20. bind -r H resize-pane -L 5 # 向右扩展
  21. bind -r K resize-pane -U 5 # 向上扩展
  22. bind -r J resize-pane -D 5 # 向下扩展
  23.  
  24. bind '"' split-window -c '#{pane_current_path}'
  25. bind '%' split-window -h -c '#{pane_current_path}'
  26.  
  27. bind Escape copy-mode
  28. bind-key -Tcopy-mode-vi 'v' send -X begin-selection
  29. bind-key -Tcopy-mode-vi 'y' send -X copy-selection
  30. bind-key -Tcopy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
  31. unbind p
  32. bind p pasteb
  33. setw -g mode-keys vi # Vi风格选择文本
  34.  
  35. # Set default shell to zsh
  36. set-option -g default-shell /bin/zsh
  37.  
  38. # Use the following line to fix OS X tmux problems
  39. set-option -g default-command "reattach-to-user-namespace -l /bin/zsh"
  40.  
  41. # List of plugins
  42. set -g @plugin 'tmux-plugins/tpm'
  43. set -g @plugin 'tmux-plugins/tmux-sensible'
  44. set -g @plugin 'tmux-plugins/tmux-resurrect'
  45. set -g @plugin 'tmux-plugins/tmux-continuum'
  46.  
  47. # Other examples:
  48. # set -g @plugin 'github_username/plugin_name'
  49. # set -g @plugin 'git@github.com/user/plugin'
  50. # set -g @plugin 'git@bitbucket.com/user/plugin'
  51.  
  52. # Enable automatic restore
  53. set -g @continuum-restore 'on'
  54.  
  55. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  56. run '~/.tmux/plugins/tpm/tpm'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement