Skip to content

Instantly share code, notes, and snippets.

@a-leung
Last active March 17, 2016 19:23
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 a-leung/e8f7ba4751343a559973 to your computer and use it in GitHub Desktop.
Save a-leung/e8f7ba4751343a559973 to your computer and use it in GitHub Desktop.
tmux.conf
###################
# Prefix key setup
###################
set -g prefix C-a # remap prefix to Control + a --> i'm old that way.
# bind 'C-a C-a' to type 'C-a'
bind a send-prefix # send 'C-a' into terminal app by typing: 'C-a a'
bind C-a last-window # bounce between windows just by typing 'C-a C-a'
unbind C-b # get rid of C-b as prefix
########################
# colors & status bar
########################
set -g default-terminal "screen"
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-keys emacs
setw -g mode-keys emacs
############################
# moving and resizing panes
############################
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# note: `bind -n` removes prefix requirements
# resize panes with vim movement keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment