# Change prefix to screen-like unbind C-b set-option -g prefix C-a # Pane switching with alt + arrows bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D # Activity monitor (notification) setw -g monitor-activity on set -g visual-activity on # Hilight current pane set-option -g pane-active-border-fg red #set-option -g pane-active-border-bg blue # Start window numbering at 1 set -g base-index 1 # C-a for last window bind-key C-a last-window # Show man page in new pane bind-key / command-prompt "split-window 'exec man %%'" # Limit history to x lines set -g history-limit 5000 # Respect UTF-8 setw -g utf8 on set -g utf8 on # Use 256 colour terminal set -g default-terminal "screen-256color" # Add spliting hotkeys bind-key k split-window -h bind-key l split-window -v # Add pane moving hotkeys bind-key -r h swap-pane -U bind-key -r j swap-pane -D # Resize hotkeys bind-key -r > resize-pane -L 3 bind-key -r < resize-pane -R 3 bind-key -r + resize-pane -U 1 bind-key -r = resize-pane -D 1 # Statusbar config from http://unix.stackexchange.com/questions/19972/convert-gnu-screen-status-line-to-tmux-status-line # default statusbar colors set -g status-fg white set -g status-bg default # 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 # statusline set -g status-interval 3 set -g status-justify centre set -g status-left-length 20 set -g status-right-length 60 set -g status-left '#[fg=green][ #H ][' set -g status-right '#[fg=green]][ Load: #(cut -d " " -f 1-3 /proc/loadavg) ][ #[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[fg=green]]'