dot/tmux/.tmuxv2.conf

60 lines
1.6 KiB
Plaintext

# TPM plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
run '~/.tmux/plugins/tpm/tpm'
# General
set -g default-shell /bin/zsh
set -g default-terminal 'tmux-256color'
set -g mouse on
set -g history-limit 10000
set -g base-index 1
setw -g pane-base-index 1
set -g escape-time 10
set -g repeat-time 500
set -g mode-keys vi
set -g status-keys vi
# Unbind the default arrow keys (optional)
unbind-key Up
unbind-key Down
unbind-key Left
unbind-key Right
# Use prefix + h/j/k/l to move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Status bar
set -g status on
set -g status-interval 5
set -g status-position bottom
set -g status-left "#[fg=blue]#[fg=black,bg=blue] #(whoami) #[fg=blue,bg=default] "
set -g status-right "#[fg=cyan,bg=default]#[fg=black,bg=cyan] #(hostname)  %H:%M #[fg=cyan,bg=default]"
set -g status-style bg=default,fg=white
set -g window-status-format "#[fg=blue]#[fg=black bg=blue] #I  #W #[fg=blue, bg=default]"
set -g window-status-current-format "#[fg=cyan,bg=default]#[fg=colour232,bg=cyan] #I  #W #[fg=cyan,bg=default]"
# Pane and window style
set -g pane-border-status top
set -g pane-border-format '#[bold]#W#[default]'
set -g pane-border-style fg=grey
set -g pane-active-border-style fg=cyan
setw -g automatic-rename on
# Key aliases
set -g command-alias[0] splitv="split-window -v"
set -g command-alias[1] splith="split-window -h"
set -g focus-events on
set -a terminal-features 'xterm-256color:RGB'