dotfiles/playbooks/roles/shell/templates/tmux.conf.j2
Matej Focko 66dab16bfd
Update shell setup
Signed-off-by: Matej Focko <me@mfocko.xyz>
2021-02-07 13:23:17 +01:00

37 lines
946 B
Django/Jinja

set -g default-terminal "screen-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 r 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'