################################################################################## # # Settings # # Change the terminal type to add more colour set -g default-terminal "tmux-256color" # Enable mouse support set -g mouse on # Enable scrolling with the mouse using termcap set -g terminal-overrides 'xterm*:smcup@:rmcup@' set -g mouse off # Window titles. set -g set-titles on set -g set-titles-string "[ #H.#S.#I ] [ #W ] [ #T ] #{session_alerts}" # Status bar set -g status on set -g status-interval 1 set -g status-justify centre set -g status-position bottom set -g status-style fg=white,bg=colour235 set -g status-left "#[fg=green][ #[fg=white]#H #[fg=green]][" set -g status-left-length 30 set -g status-right "#[fg=green]][ #[fg=cyan]%Y-%m-%d #[fg=white]%I:%M #[fg=green]]" set -g status-right-length 40 # Pane border and status setw -g pane-border-format " #P: #T " setw -g pane-border-status bottom # Active window style setw -g window-status-current-format "#[fg=red](#[fg=white]#I.#P#F$ #W#[fg=red])" setw -g window-status-current-style fg=white,bright # In-active window style setw -g window-status-format " #I.#P#F$ #W " setw -g window-status-style fg=white,dim ################################################################################## # # Key Bindings # # Add a second prefix, and a binding to send the prefix set -g prefix2 C-x bind-key -T prefix x send-prefix -2 # Rebind ' C-x' to switch to the last active window bind-key -T prefix C-x last-window # Re-add the old ' x' binding as C-q bind-key -T prefix C-q confirm-before -p "kill-pane #P? (y/n)" kill-pane # Remove the Ctrl- bindings unbind-key -T prefix C-Up unbind-key -T prefix C-Down unbind-key -T prefix C-Left unbind-key -T prefix C-Right # Add Shift- bindings to change pane sizes bind-key -r -T prefix S-Up resize-pane -U bind-key -r -T prefix S-Down resize-pane -D bind-key -r -T prefix S-Left resize-pane -L bind-key -r -T prefix S-Right resize-pane -R