tmux: Save sessions before detaching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user