Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unbind C-b
- set -g prefix C-z
- bind-key z send-prefix
- # set -g mouse on
- setw -g window-status-current-style fg=white,bold,bg=red
- setw -g pane-border-style fg=green,bg=black
- setw -g pane-active-border-style fg=white,bg=red
- setw -g monitor-activity on
- set -g visual-activity on
- bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
- bind h select-pane -L
- bind j select-pane -D
- bind k select-pane -U
- bind l select-pane -R
- # repeat-time 500ms
- bind -r L resize-pane -R 5 # 向左扩展
- bind -r H resize-pane -L 5 # 向右扩展
- bind -r K resize-pane -U 5 # 向上扩展
- bind -r J resize-pane -D 5 # 向下扩展
- bind '"' split-window -c '#{pane_current_path}'
- bind '%' split-window -h -c '#{pane_current_path}'
- bind Escape copy-mode
- bind-key -Tcopy-mode-vi 'v' send -X begin-selection
- bind-key -Tcopy-mode-vi 'y' send -X copy-selection
- bind-key -Tcopy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
- unbind p
- bind p pasteb
- setw -g mode-keys vi # Vi风格选择文本
- # Set default shell to zsh
- set-option -g default-shell /bin/zsh
- # Use the following line to fix OS X tmux problems
- set-option -g default-command "reattach-to-user-namespace -l /bin/zsh"
- # List of plugins
- set -g @plugin 'tmux-plugins/tpm'
- set -g @plugin 'tmux-plugins/tmux-sensible'
- set -g @plugin 'tmux-plugins/tmux-resurrect'
- set -g @plugin 'tmux-plugins/tmux-continuum'
- # Other examples:
- # set -g @plugin 'github_username/plugin_name'
- # set -g @plugin 'git@github.com/user/plugin'
- # set -g @plugin 'git@bitbucket.com/user/plugin'
- # Enable automatic restore
- set -g @continuum-restore 'on'
- # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
- run '~/.tmux/plugins/tpm/tpm'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement