Configuration backup for `~/.tmux.conf`

November 23, 2024 note-to-self backup
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-option -g default-command "$HOME/.bashrc"

#set-option -g default-command "/bin/bash"
#set -s escape-time 0
#bind '"' split-window -c "#{pane_current_path}"
#bind % split-window -h -c "#{pane_current_path}"

# Split panes horizontal
# bind-key -T \ split-window -h
# bind-key -T "s" split-window -h

# Split panes vertically
# bind-key -T "-" split-window -v
# bind-key -T "v" 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'

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'

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 -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'