# use vi mode set -g mode-keys vi # remap tmux set -g prefix C-a unbind C-b bind C-a send-prefix # sane scrolling setw -g mouse on bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M bind -n WheelDownPane select-pane -t= \; send-keys -M #setting the delay between prefix and command set -sg escape-time 1 # start window index of 1 instead of 0 set-option -g base-index 1 # Start panes at 1 instead of 0. tmux 1.6 only setw -g pane-base-index 1 # Status line left side set -g status-left-length 40 set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]' # Status line right side # 28 Nov 18:15 set -g status-right '#[fg=blue]%d %b %R' # Update the status bar every sixty seconds set -g status-interval 30 # Center the window list set -g status-justify centre # default statusbar colors set -g status-fg white set -g status-bg default set -g status-attr bright # default window title colors set-window-option -g window-status-fg white set-window-option -g window-status-bg default set-window-option -g window-status-attr dim # active window title colors set-window-option -g window-status-current-fg white set-window-option -g window-status-current-bg default set-window-option -g window-status-current-attr bright # reload config bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." # auto window rename set-window-option -g automatic-rename # enable activity alerts setw -g monitor-activity on set -g visual-activity on # splitting panes bind _ split-window -h bind - split-window -v # set correct term set -g default-terminal xterm # easily toggle synchronization (mnemonic: e is for echo) bind e setw synchronize-panes on bind E setw synchronize-panes off # moving between panes bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # Pane resizing bind -r H resize-pane -L 5 bind -r J resize-pane -D 5 bind -r K resize-pane -U 5 bind -r L resize-pane -R 5