Created
February 13, 2022 13:12
-
-
Save huchenxucs/863dad4e61d75ba5981b4bf60e70f252 to your computer and use it in GitHub Desktop.
tmux conf file
This file contains hidden or 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
# open mouse mode | |
set-option -g mouse on | |
# reload config | |
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
# set window split | |
bind-key v split-window -h | |
bind-key h split-window -v | |
# use alt-arrow keys to switch panes | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# shift arrow to switch windows | |
bind -n S-Left previous-window | |
bind -n S-Right next-window | |
# remap prefix from 'C-b' to 'C-a' | |
set-option -g prefix C-a | |
unbind-key C-a | |
bind-key C-a send-prefix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment