Skip to content

Instantly share code, notes, and snippets.

@brianwebb01
Created May 9, 2013 16:36
Show Gist options
  • Save brianwebb01/5548645 to your computer and use it in GitHub Desktop.
Save brianwebb01/5548645 to your computer and use it in GitHub Desktop.
My tmux.conf 5/8/2013
# set prefix to Ctrl-a
set -g prefix C-a
unbind C-b
# reduce delay btwn chars in cmd seq
set -s escape-time 1
# increase repeat time for better multi-hits of cmd
set repeat-time 1000
# Set the window and pane indexes to 1
set -g base-index 1
setw -g pane-base-index 1
# prefix: r = reload txmux config
bind r source-file ~/.tmux.conf\; display "Reloaded!"
# hit ctrl-a twice to send to program
bind C-a send-prefix
# split windows with - and |
bind | split-window -h
bind - split-window -v
# pane nav w/ vim like nav cmds (hjkl)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# cycle windows w/ ctrl-h and ctrl l
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resize panes w/ cap vim like nav cmds (HMKL)
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# disable mouse
setw -g mode-mouse off
set -g mouse-select-pane off
set -g mouse-resize-pane off
set -g mouse-select-window off
# enable 256 colors
set -g default-terminal "screen-256color"
# colors: status bar
set -g status-fg white
set -g status-bg black
# colors: window
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# colors: panes
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg red
set -g pane-active-border-bg black
# colors: command bar
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# size / color / formatting: cmd bar
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
set -g status-right "#[fg=cyan]%d %b %R"
set -g status-utf8 on
set -g status-interval 60
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment