Skip to content

Instantly share code, notes, and snippets.

@wyattdanger
Created August 12, 2011 16:00
Show Gist options
  • Save wyattdanger/1142359 to your computer and use it in GitHub Desktop.
Save wyattdanger/1142359 to your computer and use it in GitHub Desktop.
my tmux configuration
# This sets default key to control-a instead of control-b.
# I also recommend remapping caps lock to control in system preferences
set-option -g prefix C-a
bind-key C-w last-window
set -g base-index 1
set-option -g default-terminal "screen-256color"
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set -g history-limit 4096
setw -g automatic-rename off
set-option -g set-titles on
set-option -g set-titles-string '#(hostname -s):#I.#P #W #T' # window number,program name,active (or not)
set-window-option -g window-status-fg black
set-window-option -g window-status-current-fg colour232
set-window-option -g window-status-current-attr bold
set -g status-left-length 20
set-option -g lock-after-time 300
set-option -g lock-server on
set -g lock-command vlock
#`+r reloads the configuration, handy
bind r source-file ~/.tmux.conf
unbind Left
unbind Right
unbind Down
unbind Up
bind -r Left resize-pane -L 2
bind -r Right resize-pane -R 2
bind -r Down resize-pane -D 2
bind -r Up resize-pane -U 2
# uncomment if using macvim and zsh
# and install https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
# set-option -g default-command "reattach-to-user-namespace -l zsh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment