Configuration backup for `~/.tmux.conf`

November 23, 2024 note-to-self backup
# v split: C-space, then \ or |
# h split: C-space, then -
# cycle through splits: C-space, then o
# view split by number: C-space, then q, then the number you want to go to while they are still visible
# rename window: C-space, then ,
# kill window: C-space, then x
#
set -g base-index 1
setw -g pane-base-index 1

unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
bind c new-window -c "#{pane_current_path}"
#bind -n M-Up copy-mode
# same as [ >>>  bind s copy-mode


set-option -g default-terminal "screen-256color"
set-option -g default-shell "/bin/bash"
set-option -g history-limit 250000
set -g display-panes-time 5000

# Easier pane splitting
bind | split-window -h
bind \\ split-window -h
bind - split-window -v

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'erikw/tmux-powerline'

unbind-key -T copy-mode-vi v

# copy mode
setw -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection     # Begin selection in copy mode.
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle  # Begin selection in copy mode.
bind-key -T copy-mode-vi 'y' send -X copy-selection      # Yank selection in copy
bind-key , command-prompt "rename-window '%%'" # so rename starts blank

bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

Links

Plugins TPM Plugin Manager