Skip to content

Instantly share code, notes, and snippets.

@Igotit
Created May 15, 2014 17:34
Show Gist options
  • Save Igotit/5532b0a6cd0d316a00f6 to your computer and use it in GitHub Desktop.
Save Igotit/5532b0a6cd0d316a00f6 to your computer and use it in GitHub Desktop.
Common ~/.tmux.conf
#-- base --#
unbind C-b
set -g prefix 'C-\'
bind 'C-\' send-prefix
set -g default-terminal "screen-256color"
set -g display-time 3000
set -g history-limit 10000
set -g base-index 1
set -g pane-base-index 1
# No delay for escape key press
set -sg escape-time 0
set -g status-keys vi
set -g visual-activity on
set -g set-titles on
setw -g mode-keys vi
setw -g monitor-activity on
setw -g automatic-rename on
# mouse
setw -g mode-mouse on
set -g mouse-select-pane on
# reload
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
# navigate panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind ^k resizep -U 10
bind ^j resizep -D 10
bind ^h resizep -L 10
bind ^l resizep -R 10
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# split
unbind '"'
bind - splitw -v
unbind %
bind | splitw -h
#-- statusbar --#
set -g status-justify centre
set -g status-left "#[fg=green]s#S:w#I.p#P#[default]"
set -g status-left-attr bright
set -g status-left-length 20
set -g status-right "#[fg=red,bright][ #[fg=cyan]#(cd ~/;git branch --no-color | sed -e '/^[^*]/d' -e 's/* //') #[fg=red]]#[default] #[fg=yellow,bright] %Y-%m-%d #[fg=green]%H:%M #[default]#[fg=magenta,bright]#[default]"
set -g status-utf8 on
set -g status-interval 1
# default statusbar colors
set -g status-bg colour235 #base02
set -g status-fg colour136 #yellow
set -g status-attr default
# default window title colors
setw -g window-status-fg colour244
setw -g window-status-bg default
#setw -g window-status-attr dim
# active window title colors
setw -g window-status-current-fg colour166 #orange
setw -g window-status-current-bg default
#setw -g window-status-current-attr bright
# pane border
set -g pane-active-border-fg '#55ff55'
set -g pane-border-fg '#555555'
# message text
set -g message-bg colour235 #base02
set -g message-fg colour166 #orange
# pane number display
set -g display-panes-active-colour colour33 #blue
set -g display-panes-colour colour166 #orange
# clock
setw -g clock-mode-colour colour64 #green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment