Skip to content

Instantly share code, notes, and snippets.

@tehmaze
Created July 23, 2012 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tehmaze/3166837 to your computer and use it in GitHub Desktop.
Save tehmaze/3166837 to your computer and use it in GitHub Desktop.
tmux configuration, inspired on vim-powerline
# c-b .. really?
set-option -g prefix C-a
# c-a c-a for the last active window
bind-key C-a last-window
# command sequence for nested tmux sessions
bind-key a send-prefix
# start window numbering at 1
set -g base-index 1
# faster command sequences
set -s escape-time 0
# aggressive resize
setw -g aggressive-resize on
# longer show time for messages
set -g display-time 2000
# different message colors
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
# default statusbar colors
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
# Status extras
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left '#[fg=colour16,bg=colour254,bold] %Y-%m-%d %H:%M #[fg=colour254,bg=colour238,nobold]⮀#[fg=colour15,bg=colour238,bold] %A #[fg=colour238,bg=colour234,nobold]⮀ #(cut -d " " -f1-3 </proc/loadavg) #[fg=colour234,nobold,bg=default]⮀'
set -g status-right '#[fg=colour245]⮃ %R ⮃ %d %b #[fg=colour254,bg=colour234,nobold]#(rdio-current-track-tmux)⮂#[fg=colour16,bg=colour254,bold] #h '
set -g status-left-length 50
set -g status-right ''
set -g status-right-length 0
set -g status-justify right
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment