sundry/tmux.conf

50 lines
1.2 KiB
Plaintext

# Change keybinding from C-b to C-a (screenlike)
unbind C-b
set-option -g prefix C-a
bind a send-prefix
# Change previous window binding from l to C-a (screenlike)
unbind l
bind C-a last-window
# Reload configs for faster config testing
bind r source-file ~/.tmux.conf
# start numbering windows at 1
set -g base-index 1
set-window-option -g pane-base-index 1
set-window-option -g automatic-rename on
set-option -g set-titles on
set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 1000
setw -g mode-keys vi
setw -g mouse on
setw -g monitor-activity on
# Don't insert a delay before sending escape
set -sg escape-time 0
# Bind Alt-<vi arrow) to pane switching
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'omerxx/tmux-sessionx'
# 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'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'