tmux.conf (1532B)
1 # prefix key 2 unbind C-b 3 set-option -g prefix C-Space 4 bind C-Space send-prefix 5 6 # vim movements for pane switching and resizing 7 bind -r h select-pane -L 8 bind -r j select-pane -D 9 bind -r k select-pane -U 10 bind -r l select-pane -R 11 bind -r H resize-pane -L 5 12 bind -r J resize-pane -D 5 13 bind -r K resize-pane -U 5 14 bind -r L resize-pane -R 5 15 bind -r C-h resize-pane -L 16 bind -r C-j resize-pane -D 17 bind -r C-k resize-pane -U 18 bind -r C-l resize-pane -R 19 20 # fix escape key 21 set -sg escape-time 0 22 23 # no gaps in window number count when a window gets deleted 24 set -g renumber-windows on 25 26 # send focus events to clients 27 set -g focus-events on 28 29 # vim keys for copy mode 30 set-window-option -g mode-keys vi 31 bind -T prefix Escape copy-mode 32 bind -T copy-mode v send -X begin-selection 33 bind -T copy-mode y send -X copy-selection 34 bind -T prefix P paste-buffer -p 35 36 # do not ask stupid questions 37 bind-key x kill-pane 38 39 # statusbar 40 set -g status-position top 41 bind S { set-option status } 42 set -g pane-active-border-style fg=color8 43 set -g pane-border-style fg=color8 44 set -g status-left '' 45 set -g status-style default 46 set -g window-status-format '#[fg=yellow,bg=color237] #I #[fg=white,bg=color8] #W #[default]' 47 set -g window-status-current-format '#[fg=black,bg=yellow] #I #[fg=white,bg=color8] #W #[default]' 48 set -g status-right '#{?window_zoomed_flag,#[fg=black]#[bg=yellow] ZOOMED ,}#[fg=yellow,bg=color237] #h #[fg=white,bg=color8] %F %H:%M ' 49 50 # start counting windows at 1 51 set -g base-index 1 52 53 # reload config 54 bind r source-file ~/.tmux.conf