Created
April 24, 2020 16:06
-
-
Save zlargon/9c3d62e055e09b57858ccef293e80484 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
# https://gist.github.com/spicycode/1229612 | |
# https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html | |
# 0 is too far from ` | |
set -g base-index 1 | |
# detach | |
bind -n C-e detach-client | |
# create new tab | |
bind -n C-t new-window | |
# shift arrow to switch tabs | |
bind -n S-Left previous-window | |
bind -n S-Right next-window | |
# split window to panes | |
bind -n C-y split-window -v | |
bind -n C-u split-window -h | |
# use alt-arrow keys without prefix key 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 | |
# No delay for escape key press | |
set -sg escape-time 0 | |
# reload tmux config | |
bind r source-file ~/.tmux.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment