Skip to content

Instantly share code, notes, and snippets.

@dinhtungdu
Created October 25, 2020 05:12
Show Gist options
  • Save dinhtungdu/e18148c77451bd441107701d890e3d3c to your computer and use it in GitHub Desktop.
Save dinhtungdu/e18148c77451bd441107701d890e3d3c to your computer and use it in GitHub Desktop.
My tmux config
set -g prefix `
bind \ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
set -g base-index 1
setw -g mode-keys vi
bind Escape copy-mode
unbind p
bind p paste-buffer
# Toggle mouse on with ^B m
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment