diff --git a/.gitmodules b/.gitmodules index ae0b746..e83ad4c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -80,3 +80,6 @@ shallow = true ignore = dirty +[submodule "tmux/tmux-resurrect"] + path = config/tmux/plugins/tmux-resurrect + url = https://github.com/tmux-plugins/tmux-resurrect.git diff --git a/add-submodules.sh b/add-submodules.sh index 1600344..0f3cfe7 100755 --- a/add-submodules.sh +++ b/add-submodules.sh @@ -26,6 +26,8 @@ git submodule add --name tmux/tmux-continuum \ -f https://github.com/tmux-plugins/tmux-continuum config/tmux/plugins/tmux-continuum git submodule add --name tmux/tmux-mode-indicator \ -f https://github.com/MunifTanjim/tmux-mode-indicator.git config/tmux/plugins/tmux-mode-indicator +git submodule add --name tmux/tmux-resurrect \ + -f https://github.com/tmux-plugins/tmux-resurrect.git config/tmux/plugins/tmux-resurrect git submodule add --name tmux/tmux-sensible \ -f https://github.com/tmux-plugins/tmux-sensible.git config/tmux/plugins/tmux-sensible git submodule add --name tmux/tmux-sessionist \ @@ -55,7 +57,6 @@ folders=( "config/tmux/plugins/tpm" "config/tmux/plugins/tmux" "config/tmux/plugins/tmux-menus" - "config/tmux/plugins/tmux-resurrect" "tools/dotbot-crontab" "tools/dotbot-snap" "config/nvim-kickstart" diff --git a/config/tmux/plugins/tmux-resurrect b/config/tmux/plugins/tmux-resurrect new file mode 160000 index 0000000..cff343c --- /dev/null +++ b/config/tmux/plugins/tmux-resurrect @@ -0,0 +1 @@ +Subproject commit cff343cf9e81983d3da0c8562b01616f12e8d548 diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index b215241..9158cb1 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -137,6 +137,9 @@ set -g @mode_indicator_sync_mode_style 'bg=default,fg=red' set -g @fzf-url-bind 'u' set -g @fzf-url-history-limit '2000' +# https://github.com/tmux-plugins/tmux-continuum +set -g @continuum-restore 'on' + # ── Own scripts ─────────────────────────────────────────────────────── # If we started tmux with a session name, rename it. @@ -154,6 +157,7 @@ run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-window-name/tmux_window_name run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-mode-indicator/mode_indicator.tmux" run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux" run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-continuum/continuum.tmux" +run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-resurrect/resurrect.tmux" run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-sessionist/sessionist.tmux" run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux" run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux"