dot/tmux/tmux.conf
2025-11-28 00:51:56 +01:00

61 lines
1.3 KiB
Plaintext

# TPM plugins
set -g @plugin 'tmux-plugins/tpm'
run '~/.tmux/plugins/tpm/tpm'
# General
set -g default-shell /usr/bin/fish
set -g default-terminal 'tmux-256color'
set -g mouse off
set -g history-limit 100
set -g base-index 1
setw -g pane-base-index 1
set -g mode-keys vi
set -g status-keys vi
# Unbind the default arrow keys
unbind-key Up
unbind-key Down
unbind-key Left
unbind-key Right
# Move between panes
bind-key -n M-h select-pane -L
bind-key -n M-j select-pane -D
bind-key -n M-k select-pane -U
bind-key -n M-l select-pane -R
bind-key -n M-$ split-window -h
bind-key -n M-% split-window -v
bind-key -n M-c new-window
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
# 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 " #(whoami) "
set -g status-right " #(hostname)  %H:%M "
set -g status-style bg=default,fg=white
set -g window-status-format " #I  #W "
set -g window-status-current-format "-> #I  #W "
# Pane and window style
set -g pane-border-status bottom
set -g pane-border-format '#P'
set -g pane-border-style fg=grey
set -g pane-active-border-style fg=cyan
setw -g automatic-rename on