Files
dotfiles/tmux.conf
2019-10-18 08:54:45 +00:00

37 lines
1.4 KiB
Bash

set -g base-index 1
run-shell ~/src/tmux-resurrect/resurrect.tmux
bind C-l send-keys 'C-l'
bind r source ~/.tmux.conf\; display "~/.tmux.conf sourced!"
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
# is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
# bind-key -n C-Left if-shell "$is_vim" "send-keys C-Left" "select-pane -L"
# bind-key -n C-Down if-shell "$is_vim" "send-keys C-Down" "select-pane -D"
# bind-key -n C-Up if-shell "$is_vim" "send-keys C-Up" "select-pane -U"
# bind-key -n C-Right if-shell "$is_vim" "send-keys C-Right" "select-pane -R"
# bind-key -n C-backspace if-shell "$is_vim" "send-keys C-Backspace" "select-pane -l"
# bind-key -T copy-mode-vi C-Left select-pane -L
# bind-key -T copy-mode-vi C-Down select-pane -D
# bind-key -T copy-mode-vi C-Up select-pane -U
# bind-key -T copy-mode-vi C-Right select-pane -R
# bind-key -T copy-mode-vi C-Backspace select-pane -l
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'christoomey/vim-tmux-navigator'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'