.tmux.conf
#--Options----------------------------------------------------------------- set-option -sg escape-time 50 set-option -g base-index 1 set-option -g default-terminal xterm-color set-window-option -g xterm-keys on # to make ctrl-arrow, etc. work set -g history-limit 100000 #--Key-Bindings----------------------------------------------------------------- bind-key S command-prompt -p ssh: "new-window -n %1 'ssh %1'" bind-key t command-prompt -p title: "rename-window %1" bind | split-window -h bind _ split-window -v bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R #unbind-key C-" bind-key '"' choose-window bind-key "'" choose-session #Use Ctrl-A for screen compat set-option -g prefix C-a unbind-key C-b bind-key a send-prefix #Last window, next window etc bind-key C-a last-window bind-key Space next-window bind-key C-Space previous-window #--Mouse----------------------------------------------------------------- set -g mouse-select-pane on set -g mouse-select-window on set -g mouse-resize-pane on set -g mode-mouse on #--Status-Bar------------------------------------------------------------------- # Command bar set-option -g status-fg white set-option -g status-bg red set-option -g status-attr bright # Default colors set-option -g status-bg colour27 set -g status-fg white # Left side of status bar set -g status-left-length 20 #set -g status-left '#[fg=green][#[bg=black,fg=cyan]#S#[bg=black,fg=blue,dim]:#H#[fg=green]]' # Inactive windows in status bar set-window-option -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]:#[default]#W#[fg=grey,dim]#F' # Current or active window in status bar set-window-option -g window-status-current-bg red set-window-option -g window-status-current-fg black set-window-option -g window-status-current-format '#[bg=blue,fg=cyan,bold]#I#[bg=blue,fg=cyan]:#[fg=white]#W#[fg=dim]#F' # Alerted window in status bar. Windows which have an alert (bell, activity or content). #set-window-option -g window-status-alert-fg red #set-window-option -g window-status-alert-bg white # Right side of status bar #set -g status-right '#[fg=yellow]#(date)' set -g status-right '#[fg=green][#[fg=white]#T#[fg=green]][#[fg=yellow]%Y-%m-%d #[fg=white]%H:%M#[default]#[fg=green]]'