Last active
May 14, 2020 18:12
-
-
Save castexyz/cc63366d72470d6ca3f2ecb6d90263a0 to your computer and use it in GitHub Desktop.
my 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
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| #QOL | |
| set -g history-limit 10000 | |
| set-option -g allow-rename off | |
| #JOIN WINDOWS | |
| bind-key j command-prompt -p "join pane from" "join pane -s '%%'" | |
| bind-key s command-prompt -p "send pane to" "join pane -t '%%'" | |
| # Search Mode VI | |
| set-window-option -g mode-keys vi | |
| # split panes using | and - | |
| bind \\ split-window -h | |
| bind - split-window -v | |
| unbind '"' | |
| unbind % | |
| # reload config file (change file location to your the tmux.conf you want to use) | |
| bind r source-file ~/.tmux.conf | |
| # switch panes using Alt-arrow without prefix | |
| 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 | |
| # Enable mouse mode (tmux 2.1 and above) | |
| set -g mouse on | |
| # Start windows and panes at 1, not 0 | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| #Use tmux manager and tmux session restore | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
| run -b '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment