Created
October 25, 2020 05:12
-
-
Save dinhtungdu/e18148c77451bd441107701d890e3d3c to your computer and use it in GitHub Desktop.
My tmux config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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