Skip to content

Instantly share code, notes, and snippets.

@adamnbowen
Created May 18, 2012 22:09
Show Gist options
  • Save adamnbowen/2727842 to your computer and use it in GitHub Desktop.
Save adamnbowen/2727842 to your computer and use it in GitHub Desktop.
My tmux conf file
# Use C-a instead of the default prefix
set -g prefix C-a
# Free up the default prefix, C-b
unbind C-b
# Reduce delay in sending commands
set -sg escape-time 1
# Set base index for windows to 1, not zero
set -g base-index 1
# Set base index for panes to 1, not zero
setw -g pane-base-index 1
# Reload ~/.tmux.conf, and display "Reloaded!"
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Send C-a to a program within tmux by pressing C-a twice
bind C-a send-prefix
# Splitting panes:
bind | split-window -h
bind - split-window -v
# Vim-like movement between panes:
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Cycle through windows with PREFIX C-h and PREFIX C-l
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Resizing panes:
bind H resize-pane -L 6
bind J resize-pane -D 6
bind K resize-pane -U 6
bind L resize-pane -R 6
# Enable mouse mode:
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# Movement
setw -g mode-keys vi
# Make tmux display in 256 colors:
set -g default-terminal "screen-256color"
# Appearance:
set -g status-fg white
set -g status-bg black
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
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# Status Line:
set -g status-utf8 on
set -g status-interval 60
set -g status-justify left
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]%A,%e %b %l:%M %p"
# Notify me of activity in another window:
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