Created
March 8, 2012 19:41
-
-
Save kennyp/2002924 to your computer and use it in GitHub Desktop.
My Tmux Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use C-a for the prefix | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
# Make the delay a little shorter | |
set -sg escape-time 1 | |
# Number windows starting with one | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Shortcut to reload conf | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Splits make a little more sense | |
bind | split-window -h | |
bind - split-window | |
# Moving like Vim | |
setw -g mode-keys vi | |
# Move between splits | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Move between windows | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# Resize windows | |
bind H resize-pane -L 5 | |
bind J resize-pane -D 5 | |
bind K resize-pane -U 5 | |
bind L resize-pane -R 5 | |
# No mouse for you | |
setw -g mode-mouse off | |
# Pretty colors | |
set -g default-terminal "screen-256color" | |
# Status Bar | |
set -g status-fg white | |
set -g status-bg black | |
# Window Colors | |
setw -g window-status-fg cyan | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
# Active Window Colors | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg red | |
setw -g window-status-current-attr bright | |
# Border Colors | |
set -g pane-border-fg black | |
set -g pane-active-border-fg black | |
# Status bar love | |
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 | |
set -g status-left "#[fg=green]#S" | |
set -g status-right "#[fg=red]#(~/bin/my_battery Low)#[fg=yellow]#(~/bin/my_battery High)#[fg=green]#(~/bin/my_battery Charging)#[fg=white] | #[fg=cyan]%d %b %R" | |
# Fast load | |
bind v new-window -n vim\; send-keys vim C-m | |
# Make window quiet | |
bind S set-window-option monitor-activity off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment