tmux: Save sessions before detaching

This commit is contained in:
2022-05-01 14:17:24 +02:00
parent ce4b8fa3dd
commit b316bf6683

View File

@@ -88,6 +88,9 @@ set -g @continuum-restore 'on'
# https://github.com/tpope/vim-obsession
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
# Save sessions before detaching
unbind -T prefix d
bind-key -T prefix d run-shell "$XDG_CONFIG_HOME/tmux/plugins/tmux-resurrect/scripts/save.sh" \; detach-client
## Theming (inspired by https://github.com/Who23/dots/blob/21976e76644d8d9261ebdcf61733d2181a1612eb/tmux.conf)
set -g status-style bg=default,fg=white