dotfiles/roles/shell_tmux/files/tmux.conf

41 lines
1,003 B
Text
Raw Normal View History

set -g default-terminal "tmux-256color"
set -g default-command "${SHELL}"
set-window-option -g automatic-rename off
set-option -g allow-rename off
set-option -g renumber-windows on
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
unbind l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind > resize-pane -R 2
bind < resize-pane -L 2
bind + resize-pane -U 2
bind - resize-pane -D 2
bind-key 'C-,' previous-window
bind-key 'C-.' next-window
bind-key K clear-history
bind-key R source-file ~/.tmux.conf \; display "Reloaded config file ~/.tmux.conf"
bind-key b set status
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S - ; save-buffer %1 ; delete-buffer'
source-file ~/.tmux/status.conf
set -g status-position bottom
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'