.tmux.conf
Copied to clipboard
set-option -sa terminal-overrides ",xterm*:Tc"
set-option -g prefix M-space
set-option -g prefix2 C-b
unbind space
unbind M-p
unbind-key d
set-option -g display-time 5000
set -g status-bg color235
set -g status-fg color250
set -g message-style bg=color245,fg=color235
set -g message-command-style bg=color245,fg=color235
set -g pane-border-style fg=color238
set -g pane-active-border-style "bg=default fg=color245"
set -g history-limit 100000
setw -g mode-keys vi
set-option -g renumber-windows on
bind-key h   select-pane -L
bind-key C-h select-pane -L
bind-key j   select-pane -D
bind-key C-j select-pane -D
bind-key k   select-pane -U
bind-key C-k select-pane -U
bind-key l   select-pane -R
bind-key C-l select-pane -R
bind-key up swap-pane -U
bind-key down swap-pane -D
bind-key -r left swap-window -d -t -1
bind-key -r right swap-window -d -t +1
pane_resize=5
bind-key -r H resize-pane -L "$pane_resize"
bind-key -r J resize-pane -D "$pane_resize"
bind-key -r K resize-pane -U "$pane_resize"
bind-key -r L resize-pane -R "$pane_resize"
bind-key "|" split-window -h -c "#{pane_current_path}"
bind-key "\\" split-window -fh -c "#{pane_current_path}"
bind-key "-" split-window -v -c "#{pane_current_path}"
bind-key "_" split-window -fv -c "#{pane_current_path}"
bind-key "%" split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key "c" new-window -c "#{pane_current_path}"
bind-key -T copy-mode-vi C-q send-keys -X cancel