Last active
November 11, 2019 06:42
-
-
Save AHewitt/3be41025915f2cd051f8d8f5c33a09ef to your computer and use it in GitHub Desktop.
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
| # use vi bindings | |
| setw -g mode-keys vi | |
| # enable mouse mode | |
| set -g mouse on | |
| # scroll history | |
| set -g history-limit 50000 | |
| # set first window to index 1 (not 0) to map more to the keyboard layout | |
| set-option -g renumber-windows on | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # split panes using | and - | |
| bind | split-window -h | |
| bind - split-window -v | |
| unbind '"' | |
| unbind % | |
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # 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 tmux-yank plugin for system clipboard copying | |
| run-shell /root/tmux-yank/yank.tmux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment