tmux: Run resurrect-save on detach in background

Shorten the time it takes to detach.
This commit is contained in:
2023-01-04 11:32:30 +01:00
parent 5f561ca79b
commit f6db506f26

View File

@@ -151,7 +151,7 @@ set -g @resurrect-strategy-nvim 'session'
# Save sessions before detaching
unbind d
bind d {
run "$XDG_CONFIG_HOME/tmux/plugins/tmux-resurrect/scripts/save.sh";
run -b "$XDG_CONFIG_HOME/tmux/plugins/tmux-resurrect/scripts/save.sh";
detach
}