bind-key -T prefix c new-window -c '#{pane_current_path}'
bind-key -T prefix '"' split-window -c '#{pane_current_path}'
bind-key -T prefix % split-window -h -c '#{pane_current_path}'

bind-key -T prefix h select-pane -L
bind-key -T prefix l select-pane -R
bind-key -T prefix j select-pane -D
bind-key -T prefix k select-pane -U

bind-key -T prefix N new

bind-key -T prefix a last

set -g base-index 1
set -g default-terminal screen-256color
set -ga terminal-overrides ",xterm-256color:Tc"

set -g @shell_mode 'vi'

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'

set -g detach-on-destroy off

# tmux plugin manager
run '~/.tmux/plugins/tpm/tpm'