Skip to content

Instantly share code, notes, and snippets.

@avescodes
Created May 10, 2013 14:48
Show Gist options
  • Save avescodes/5554875 to your computer and use it in GitHub Desktop.
Save avescodes/5554875 to your computer and use it in GitHub Desktop.
Tmux it up
set -g default-terminal "xterm-256color" # More colors
set-option -g xterm-keys on # Work more nicely with odd key combos (emacs)
set -g base-index 1 # Tabs start at '1', not '0'
set -s escape-time 0 # Faster activation
# Bind <C-q> to leader
# Make sure to update status-right to include your leader!
unbind C-b
set -g prefix C-q
bind-key q send-prefix
# The | and - keys split windows like you'd expect
unbind %
bind | split-window -h
bind - split-window -v
# Leader-hjkl select other panes (vim-style)·
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set -g history-limit 10000 # increase scrollback lines
# Inspired by drbunsen.org/text-triumvirate.html
set -g status-left-length 52
set -g status-right-length 451
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left-bg colour252
set -g status-left-fg colour235
set -g status-left ' $#S #[fg=default,bg=colour234,nobold]'
set -g window-status-format "#[fg=white,bg=colour234] #I » #W"
set -g window-status-current-format "#[fg=colour25,bg=colour39,noreverse,bold] #I > #W #[fg=colour39,bg=colour234,nobold]"
set -g status-right-fg colour252
set -g status-right-bg colour234
set -g status-right '#[fg=red]«Leader: C-q»#[fg=default] #(whoami)@#(hostname) %H:%M '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment