about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/tmux.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf
index 4491778..43d163f 100644
--- a/dotfiles/tmux.conf
+++ b/dotfiles/tmux.conf
@@ -47,9 +47,10 @@ bind % split-window -h -c "#{pane_current_path}"
 
 resurrect_dir="$HOME/.tmux/resurrect"
 set -g @resurrect-dir $resurrect_dir
-set -g @resurrect-hook-post-save-all 'target=$(readlink -f $resurrect_dir/last); sed "s| --cmd .*-vim-pack-dir||g; s|/etc/profiles/per-user/$USER/bin/||g" $target | sponge $target'
 set -g @resurrect-capture-pane-contents 'on'
+set -g @resurrect-hook-post-save-all "sed 's/--cmd[^ ]* [^ ]* [^ ]*//g' $resurrect_dir/last | sponge $resurrect_dir/last"
 set -g @resurrect-strategy-nvim 'session'
+set -g @resurrect-processes '"~nvim"'
 set -g @catppuccin_flavour 'mocha'
 set -g @continuum-restore 'on'
 set -g @continuum-save-interval 4