Skip to content

Instantly share code, notes, and snippets.

@andizzle
Created July 12, 2013 09:39
Show Gist options
  • Save andizzle/5983161 to your computer and use it in GitHub Desktop.
Save andizzle/5983161 to your computer and use it in GitHub Desktop.
# basic settings
if-shell 'test -z "$POWERLINE_COMMAND"' 'if-shell "which powerline-client" "set-environment -g POWERLINE_COMMAND powerline-client" "set-environment -g POWERLINE_COMMAND powerline"'
set -g default-terminal "screen-256color"
setw -g xterm-keys on
set -g base-index 0
set -s escape-time 0
setw -g mode-mouse off
# bindings
# first rebind prefic
unbind C-b
set -g prefix C-z
bind C-z send-prefix
# easily reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# memorable splits
bind | split-window -h
bind - split-window -v
# powerline
set -g status on
set -g status-utf8 on
set -g status-interval 1
set -g status-fg colour231
set -g status-bg colour234
set -g status-left-length 50
set -g status-left '#[fg=colour16,bg=colour2,bold] #S #[fg=colour2,bg=colour234,nobold]#(eval $POWERLINE_COMMAND tmux left)'
set -g status-right '#[fg=colour53,bg=colour234,bold]#[fg=colour231,bg=colour53] #H '
set -g status-right-length 150
set -g window-status-format "#[fg=colour244,bg=colour234]#I#[fg=colour244,bg=colour234]: #[fg=colour249]#W "
set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I:#[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment