Skip to content

Instantly share code, notes, and snippets.

@billyvg
Created March 15, 2012 16:55
Show Gist options
  • Save billyvg/2045256 to your computer and use it in GitHub Desktop.
Save billyvg/2045256 to your computer and use it in GitHub Desktop.
# bindings
unbind C-b
unbind %
set -g prefix C-a
bind-key C-a last-window
bind-key R source-file ~/.tmux.conf
# pane bindings
bind \ split-window -h
bind - split-window -v
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
bind _ resize-pane -D 5
bind + resize-pane -U 5
bind < resize-pane -L 5
bind > resize-pane -R 5
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# term stuff
set -g default-terminal "screen-256color"
# sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# use vim motion keys
setw -g mode-keys vi
# status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#S@#H'
set-window-option -g window-status-current-bg red
set -g status-right '%a %b %d, %Y %H:%M'
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Automatically set window title
setw -g automatic-rename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment