# global settings set-option -ga update-environment " GOPATH" ## mimic the screen prefix key unbind-key C-b set-option -g prefix C-a ## correctly handle utf8 #setw -g utf8 on #sest -g utf8 on ## we like colors set -g default-terminal "screen-256color" ## Useful KeyBindings ### example of some useful key-bindings #bind-key "~" split-window "exec htop" bind-key "R" source-file ~/.tmux.conf #bind-key "a" select-window -l #bind-key "C-a" select-window -l ### vim stile pane navigation #bind-key -r C-W select-pane -l bind-key -r j select-pane -t :.- bind-key -r k select-pane -t :.+ bind-key -r C-j select-pane -t :.- bind-key -r C-k select-pane -t :.+ #### Tab style pane cycling bind-key -r Tab select-pane -t :.+ ### window cycling bind-key q confirm-before kill-pane bind-key Q confirm-before kill-window ## Status bar settings set -g status-keys vi ### colors set -g status-fg green set -g status-bg black ### unicode #set -g status-utf8 on ### status string set -g status-justify centre set -g status-left-length 20 set -g status-left "#[fg=yellow](#S)" set -g status-right-length 45 set -g status-interval 300 # Each of these must be exclusive since there is a race condition between them. ## Default #set -g status-right "#[fg=green][%D %H:%M]" ## Linux if-shell 'uname | grep Linux' 'set -g status-right "#[fg=cyan]#(cat /proc/loadavg)#[fg=green] [%D %H:%M]"' ## Darwin if-shell 'uname | grep Darwin' 'set -g status-right "#[fg=cyan]#(sysctl vm.loadavg)#[fg=green] %D %H:%M"'