# basic set -g default-terminal "xterm-256color" set -ga terminal-overrides ",xterm-256color:Tc" set -as terminal-overrides ',xterm*:sitm=\E[3m' set -g escape-time 10 set -g history-limit 65535 # dynamic reload bind r source-file ~/.tmux.conf \; display "Reloaded!" # default shell set -g default-shell /bin/zsh # prefix set -g prefix C-a unbind C-b bind C-a send-prefix # copy mode setw -g mode-keys vi bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle bind-key -T copy-mode-vi 'y' send -X copy-selection # select pane bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # resize pane set -g repeat-time 800 bind -r C-h resizep -L 1 bind -r C-j resizep -D 1 bind -r C-k resizep -U 1 bind -r C-l resizep -R 1 # select last window bind - last-window # kill other panes except the current one bind o kill-pane -at $pane_index # new window or pane at current path bind c new-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind '"' split-window -c "#{pane_current_path}" # fix the name of the window set -g allow-rename off # clear history bind -n C-\\ clear-history # essay layout bind e if-shell '[ "#{window_panes}" -eq 1 ] && [ "#{pane_width}" -gt 150 ]' \ "split-window -h \; select-pane -L \; resizep -x 123" # indicator stays bind q display-panes -d 0 # display in right of the status bar set -g status-right '%a %d %b %H:%M' # style set -g status-style fg=colour136,bg=colour235 set -g window-status-style fg=colour244 set -g window-status-current-style fg=colour166,bright set -g pane-border-style fg=colour235 set -g pane-active-border-style fg=colour240 set -g message-style fg=colour166,bg=colour235 set -g display-panes-active-colour colour33 set -g display-panes-colour colour166 set -g clock-mode-colour colour64 set -g window-status-bell-style fg=colour235,bg=colour160