tmux resurrect, continuum and vim navigator

This commit is contained in:
parent e5e14abb76
commit ca77549c56
5 changed files with 22 additions and 12 deletions

9
.gitmodules vendored
View File

@ -16,3 +16,12 @@
[submodule ".tmux/plugins/tmux-yank"] [submodule ".tmux/plugins/tmux-yank"]
path = .tmux/plugins/tmux-yank path = .tmux/plugins/tmux-yank
url = https://git::@github.com/tmux-plugins/tmux-yank url = https://git::@github.com/tmux-plugins/tmux-yank
[submodule ".tmux/plugins/tmux-continuum"]
path = .tmux/plugins/tmux-continuum
url = https://git::@github.com/tmux-plugins/tmux-continuum
[submodule ".tmux/plugins/tmux-resurrect"]
path = .tmux/plugins/tmux-resurrect
url = https://git::@github.com/tmux-plugins/tmux-resurrect
[submodule ".tmux/plugins/vim-tmux-navigator"]
path = .tmux/plugins/vim-tmux-navigator
url = https://git::@github.com/christoomey/vim-tmux-navigator

View File

@ -45,24 +45,12 @@ set -g @override_copy_command 'xclip -i -selection clipboard'
set -g @yank_selection 'clipboard' set -g @yank_selection 'clipboard'
set -as terminal-features ',*:clipboard' set -as terminal-features ',*:clipboard'
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Start windows and panes at 1, not 0 # Start windows and panes at 1, not 0
set -g base-index 1 set -g base-index 1
set -g pane-base-index 1 set -g pane-base-index 1
set-window-option -g pane-base-index 1 set-window-option -g pane-base-index 1
set-option -g renumber-windows on set-option -g renumber-windows on
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows # Shift arrow to switch windows
bind -n S-Left previous-window bind -n S-Left previous-window
bind -n S-Right next-window bind -n S-Right next-window
@ -71,6 +59,15 @@ bind -n S-Right next-window
bind -n M-H previous-window bind -n M-H previous-window
bind -n M-L next-window bind -n M-L next-window
# vim tmux navigator
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persistant tmux sessions
set -g @plugin 'tmux-plugins/tmux-continuum' # auto-save sessions
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
# Dracula theme # Dracula theme
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, tmux-ram-usage, network, network-bandwidth, network-ping, ssh-session, attached-clients, network-vpn, weather, time, mpc, spotify-tui, playerctl, kubernetes-context, synchronize-panes # available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, tmux-ram-usage, network, network-bandwidth, network-ping, ssh-session, attached-clients, network-vpn, weather, time, mpc, spotify-tui, playerctl, kubernetes-context, synchronize-panes
set -g @plugin 'dracula/tmux' set -g @plugin 'dracula/tmux'
@ -91,5 +88,6 @@ set -g @dracula-show-left-sep \uE0C0
# for right symbol (can set any symbol you like as separator) # for right symbol (can set any symbol you like as separator)
set -g @dracula-show-right-sep \uE0B2 set -g @dracula-show-right-sep \uE0B2
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm' run -b '~/.tmux/plugins/tpm/tpm'

@ -0,0 +1 @@
Subproject commit 0698e8f4b17d6454c71bf5212895ec055c578da0

@ -0,0 +1 @@
Subproject commit cff343cf9e81983d3da0c8562b01616f12e8d548

@ -0,0 +1 @@
Subproject commit 5b3c701686fb4e6629c100ed32e827edf8dad01e