Skip to content

Instantly share code, notes, and snippets.

@zlargon
Created April 24, 2020 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zlargon/9c3d62e055e09b57858ccef293e80484 to your computer and use it in GitHub Desktop.
Save zlargon/9c3d62e055e09b57858ccef293e80484 to your computer and use it in GitHub Desktop.
# 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