Skip to content

Instantly share code, notes, and snippets.

@Peeja
Created February 21, 2013 14:40
Show Gist options
  • Save Peeja/5005133 to your computer and use it in GitHub Desktop.
Save Peeja/5005133 to your computer and use it in GitHub Desktop.
# Fix pbcopy etc.
set-option -g default-command "reattach-to-user-namespace -l zsh"
# 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
# Use a more convenient prefix.
set -g prefix C-j
# This is useful.
bind-key "'" last-window
# look good
set -g default-terminal "screen-256color"
# Enable mouse support (works in iTerm)
# set-window-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g mouse-select-window on
# set up layouts
set-window-option -g main-pane-width 130
set-window-option -g main-pane-height 36
# Change cursor in vim to distinguish between insert and command mode
set-option -g terminal-overrides '*88col*:colors=88,*256col*:colors=256,xterm*:XT:Ms=\E]52;%p1%s;%p2%s\007:Cc=\E]12;%p1%s\007:Cr=\E]112\007:Cs=\E]50;CursorShape=%?%p1%{3}%<%t%{0}%e%p1%{2}%-%;%d\007'
# Start tab numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Highlight active window
set-window-option -g window-status-current-bg red
# Let the session name be as long as it wants.
# (It won't take more columns than it needs.)
set-option -g status-left-length 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment