# status bar set -g status-right-length 20 set -g status-right '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]' set -g status-left '' # 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 # C-b is not acceptable -- Vim uses it # set-option -g prefix C-a # bind-key C-a last-window # Start numbering at 1 set -g base-index 1 # Allows for faster key repetition set -s escape-time 0 # Rather than constraining window size to the maximum size of any client # connected to the *session*, constrain window size to the maximum size of any # client connected to *that window*. Much more reasonable. setw -g aggressive-resize on # Allows us to use C-a a to send commands to a TMUX session inside # another TMUX session bind-key a send-prefix # Activity monitoring setw -g monitor-activity on set -g visual-activity on # Highlight active window set-window-option -g window-status-current-bg red # VI keybindings please setw -g mode-keys vi # VI for splitting bind s split-window -v bind v split-window -h # Vi copypaste mode set-window-option -g mode-keys vi bind-key -T copy-mode-vi 'v' begin-selection bind-key -T copy-mode-vi 'y' copy-selection # hjkl pane traversal bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # reload config bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." # auto window rename set-window-option -g automatic-rename # color set -g default-terminal "screen-256color" # Pane resizing bind-key J resize-pane -D 10 bind-key K resize-pane -U 10 bind-key H resize-pane -L 10 bind-key L resize-pane -R 10