Skip to content

Instantly share code, notes, and snippets.

@jiuks
Created September 24, 2012 23:25
Show Gist options
  • Save jiuks/3779079 to your computer and use it in GitHub Desktop.
Save jiuks/3779079 to your computer and use it in GitHub Desktop.
Config file for tmux
# bind tmux commands to Ctrl-A for Vim compatibility
# and better ergonomics :)
unbind C-b
set -g prefix C-a
# Ctrl-A Ctrl-A switches to last window
bind C-a last-window
bind a send-prefix
# Rebind Ctrl-| to split the window horizontally [ | ]
# inserts a split vertically
unbind %
bind | split-window -h
# Bind Ctrl-- (dash) to split the window vertically [ --- ]
# inserts a split horizontally
bind - split-window -v
# start window numbering at 1
set -g base-index 1
# set the status bar look 'n feel
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
# enable aggressive resize when using multiple clients
# setw -g aggressive-resize on
# vim key bindings
setw -g mode-keys vi
# highlight active window
set-window-option -g window-status-current-bg red
# tell tmux to use 256 colors
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment