Skip to content

Instantly share code, notes, and snippets.

@mauriciosilva
Created June 15, 2012 05:24
Show Gist options
  • Save mauriciosilva/2934814 to your computer and use it in GitHub Desktop.
Save mauriciosilva/2934814 to your computer and use it in GitHub Desktop.
## adding color
set -g default-terminal "screen-256color"
## overrides
setw -g mode-keys vi
## adding mouse support -- hrm.???
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# offset array
set -g base-index 1
setw -g pane-base-index 1
## unbind default command prefix and set new
set -g prefix C-a
unbind C-b
## increase response time
set -sg escape-time 1
## bind r to source conf file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
## won't trip up app in tmux ie vim
bind C-a send-prefix
## status bar
set -g status-bg black
set -g status-attr bright
set -g status-justify centre
setw -g monitor-activity on
setw -g visual-activity on
## message bar
setw -g message-fg white
setw -g message-bg red
setw -g message-attr bright
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #I #P"
## splitting panes
bind | split-window -h
bind - split-window -v
## moving around panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
## cycling
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
## resizing
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment