dotfiles/tmux.conf

62 lines
1.7 KiB
Plaintext

# remap C-b to C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind s split-window -h -p 20 -c "#{pane_current_path}"
bind g split-window -h -p 20 -c "#{pane_current_path}" -b
bind v split-window -v -p 30 -c "#{pane_current_path}"
# switch panes
bind -n M-w select-pane -U
bind -n M-a select-pane -L
bind -n M-s select-pane -D
bind -n M-d select-pane -R
# reload conf
bind r source-file ~/.tmux.conf
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# change color
#set -g pane-border-style 'fg=#660033'
#set -g pane-active-border-style 'fg=#990033 bg=default'
set -g pane-border-style 'fg=#000055'
set -g pane-active-border-style 'fg=#6a00aa'
# status bar
set -g status-position top
set -g status-justify left
#set -g status-style 'fg=#660033 bg=#202020'
set -g status-style 'fg=#a000ff bg=#202020'
# native xterm scrolling
set -g mouse on
set -g history-file ~/.tmux_history
# List of plugins
#set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-processes 'ssh vim nvim django-run "~manage.py"'
set -g @plugin 'tmux-plugins/tmux-yank'
run -b '~/.tmux/plugins/tpm/tpm'
#run-shell ~/tmux-resurrect/resurrect.tmux
set -s escape-time 0
set-option -g default-terminal "screen-256color"
bind-key -r f run-shell "tmux neww ~/Documents/dotfiles/scripts/tmux-sessionizer"
bind-key -r i run-shell "tmux neww tmux-cht.sh"