Skip to content

Instantly share code, notes, and snippets.

@guillaume-martin
Created January 11, 2018 05:40
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 guillaume-martin/578df0ac5cc7fc6f17be7018b4381560 to your computer and use it in GitHub Desktop.
Save guillaume-martin/578df0ac5cc7fc6f17be7018b4381560 to your computer and use it in GitHub Desktop.
configuration file for tmux
# more settings: https://pastebin.com/4ZCTcf7m
# set prefix to Ctrl-a
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
# use Alt-arraw 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-arraow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Set easier pane creation
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