# Global settings # Set prefix to ^a (like screen) # go to start of line will be C-a C-a set-option -g prefix C-a unbind-key C-b bind-key C-a send-prefix # Reload key bind r source-file ~/.tmux.conf set -g history-limit 10000 # THEME set -g status-bg black set -g status-fg white set -g status-interval 60 set -g status-left-length 30 set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]' set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=blue]%H:%M:%S#[default]' # Key Bind set -g bell-action any setw -g mode-keys vi setw -g xterm-keys on # open a man page in new window bind-key / command-prompt "split-window -h 'exec man %%'" # log output bind-key H pipe-pane 'cat >>$HOME/tmux-#W.log' ; display-message 'Started logging to $HOME/tmux-#W.log' bind-key h pipe-pane ; display-message 'Ended logging to $HOME/tmux-#W.log' # quick view of processes bind-key "~" split-window -h "exec top" unbind % bind | split-window -v unbind '"' bind - split-window -h bind-key H pipe-pane 'cat >>$HOME/tmux-#W.log' ; display-message 'Started logging to $HOME/tmux-#W.log' bind-key h pipe-pane ; display-message 'Ended logging to $HOME/tmux-#W.log' setw -g utf8 on set -g mouse-select-pane on set -g status-utf8 on # window title set-option -g set-titles on set-option -g set-titles-string'#S:#I.#P #W' # window number,program name,active (or not) set-window-option -g automatic-rename on # auto name # Highlight active window # active window title colors setw -g window-status-current-fg black setw -g window-status-current-bg red #setw -g window-status-current-attr bright setw -g window-status-current-attr underscore # clock set-window-option -g clock-mode-colour cyan set-window-option -g clock-mode-style 24