setw -g mode-keys vi set -g status-keys vi set -g default-terminal "xterm-256color" # remap prefix from 'C-b' to 'C-a' unbind C-b set-option -g prefix C-a bind-key C-a send-prefix # don't rename windows automatically set-option -g allow-rename off # add mouse scrolling set -g mouse on # smart pane switching with awareness of vim splits bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R set-option -g status on set-option -g status-interval 2 set-option -g status-justify "centre" set-option -g status-left-length 60 set-option -g status-right-length 90 set-option -g status-left "#(~/share/tmux-powerline/powerline.sh left)" set-option -g status-right "#(~/share/tmux-powerline/powerline.sh right)" set-hook -g session-created 'run-shell "~/share/tmux-powerline/powerline.sh init"' # prettifies the window-status segments bind C-[ run '~/share/tmux-powerline/mute_powerline.sh left' # Mute left statusbar. bind C-] run '~/share/tmux-powerline/mute_powerline.sh right' # Mute right statusbar.