dotfiles/private_dot_config/tmux/executable_tmux.conf
2024-07-02 20:25:00 -04:00

57 lines
1.2 KiB
Text

# Tell tmux to use 256-color internally
set -ga terminal-overrides ",xterm-256color:Tc"
# use C-a as prefix
set-option -g prefix C-a
bind-key a send-prefix
# C-a C-a for last window
bind-key C-a last-window
# 1-index windows
set -g base-index 1
# no delay after prefix
set -s escape-time 0
# resize to smallest active client
setw -g aggressive-resize on
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
# vi bindings
setw -g mode-keys vi
# mouse enable
set -g mouse on
# split panes using | and -
bind | split-window -h
bind h split-window -h
bind - split-window -v
bind v split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind-key -n C-Space new-window
bind-key -n C-S-Left prev
bind-key -n C-S-Right next
# bind -n C-left swap-window -t -1
# bind -n C-right swap-window -t +1
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file "$XDG_CONFIG_HOME/tmux.conf"
# don't rename windows automatically
set-option -g allow-rename off
set -g set-clipboard on