Skip to content

Instantly share code, notes, and snippets.

@AWooldrige
Created January 23, 2012 12:15
Show Gist options
  • Save AWooldrige/1662798 to your computer and use it in GitHub Desktop.
Save AWooldrige/1662798 to your computer and use it in GitHub Desktop.
.tmux.conf
set-option -g prefix C-Space
bind-key -n C-x send-prefix
set-option -g status-keys vi
set-option -g bell-action any
set-option -g set-titles on
set-option -g visual-bell on
setw -g mode-keys vi
setw -g mode-mouse on
setw -g monitor-activity on
unbind % # Remove default binding since we’re replacing
bind | split-window -h
bind - split-window -v
set -g base-index 1
set -g history-limit 10000
set -g default-terminal "xterm-color"
##################################################
## pane##################################################
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind r source-file ~/.tmux.conf
# Cycle to next pane
bind-key -r Tab select-pane -t :.+
# resize pane with arrow keys
# -r: can be repeated without pressing prefix# again (500ms after last '-r' action or prefix)
unbind Left
unbind Right
unbind Down
unbind Up
bind -r Left resize-pane -L 2
bind -r Right resize-pane -R 2
bind -r Down resize-pane -D 2
bind -r Up resize-pane -U 2
# Status bar prettiness
set -g status-bg blue
set -g status-fg white
set -g status-left ' #[fg=green]#(date "+%R") '
set -g status-right '#[fg=green]#(hostname -s) | #[fg=yellow]#(uptime | cut -d":" -f 5- | sed "s/^ //g")'
set-window-option -g window-status-bg blue
set-window-option -g window-status-current-bg red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment