Skip to content

Instantly share code, notes, and snippets.

@GivenZeng
Last active April 17, 2022 06:47
Show Gist options
  • Save GivenZeng/49f88a95eaa0e5fa04f6754af0617c54 to your computer and use it in GitHub Desktop.
Save GivenZeng/49f88a95eaa0e5fa04f6754af0617c54 to your computer and use it in GitHub Desktop.
tmux
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
set -g @plugin 'tmux-plugins/tmux-yank'
set -g mouse on
#禁止 rename window
set-option -g allow-rename off
set -g status-keys vi
set -g history-limit 10000
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection;
bind-key -T copy-mode-vi 'V' send -X select-line;
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment