dotfiles/.config/tmux/tmux.conf

44 lines
1.0 KiB
Bash

set -g default-terminal "screen-256color"
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
unbind %
bind - split-window -v
unbind '"'
bind _ split-window -h
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r h resize-pane -L 5
bind -r l resize-pane -R 5
bind -r m resize-pane -Z
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
unbind r
bind -r r source-file ~/.config/tmux/tmux.conf
bind-key -r g run-shell -b "tmux neww ~/.config/tmux/tmux-sessionizer-git"
bind-key -r f run-shell -b "tmux neww ~/.config/tmux/tmux-sessionizer-files"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'wfxr/tmux-power'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @tmux_power_theme '#BD93F9'
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
run '~/.config/tmux/plugins/tpm/tpm'