# enable mouse control (clickable windows, panes, resizable panes) # set -g mouse-select-window on # set -g mouse-select-pane on # set -g mouse-resize-pane on set -g mouse on # -- general ----- set -g default-terminal "screen-256color" # colors! setw -g xterm-keys on set -s escape-time 10 # faster command sequences set -sg repeat-time 600 # increase repeat time out set -g prefix2 C-a # GNU-screen compatible prefix bind C-a send-prefix -2 set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2) setw -q -g utf8 on set -g history-limit 5000 # boost history # edit configuratuon bind e new-window n '~/.tmux.conf.local' "sh -c '\${EDITOR:-vim} ~/.tmux.conf.local && tmux sourse ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"'" # reload configuration bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' # -- display ---------- set -g base-index 1 # start windows number at 1 setw -g pane-base-index 1 # start pane numbering at 1 setw -g automatic-rename on # rename winsows to reflect current program set -g renumber-windows on # renumber windows when one is closed set -g set-titles on # set terminal title set -g display-panes-time 800 # slightly longer pane indicators display time set -g display-time 1000 # slightly longer status message display time set -g status-interval 10 # redraw status line every 10 seconds # clear both screen and history bind -n C-l send-keys C-l \; run 'sleep 0.1' \; clear-history # activity set -g monitor-activity on set -g visual-activity off # --- navigation ---------------- # create session bind C-c new-session # find session bind C-f command-prompt -p find-session 'switch-client -t %%' # split current window horizontally bind - split-window -v # split current window vertically bind _ split-window -h # pane navigation bind > swap-pane -D #swap current pane to the enxt one bind < swap-pane -U # swap current pane to previous # maximize current pane bind + run 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "#{session name}" #D' #set -g mode-mouse on