Created
May 14, 2020 03:34
-
-
Save wenlilearn/b6804fb1a01e83c108d9ad2f80691060 to your computer and use it in GitHub Desktop.
tmux config
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
| # Send prefix | |
| set-option -g prefix C-a | |
| unbind-key C-a | |
| bind-key C-a send-prefix | |
| # 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 | |
| # Mouse mode | |
| setw -g mouse on | |
| # Set easier window split keys | |
| bind-key v split-window -h | |
| bind-key h split-window -v | |
| # Easy config reload | |
| bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment