about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-24 16:22:16 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-24 16:22:16 +0100
commit87f15d387cdbd3845b5c68635d0c191bf3153389 (patch)
treef4c85705b642c15c0062c9f5bed3b2b01c419a7b /dotfiles
parentDotfiles: Tmux: Use my own tmux-yank to work on x11 and wayland (diff)
downloadnixos-config-87f15d387cdbd3845b5c68635d0c191bf3153389.tar.gz
nixos-config-87f15d387cdbd3845b5c68635d0c191bf3153389.tar.bz2
nixos-config-87f15d387cdbd3845b5c68635d0c191bf3153389.zip
Dotfiles: Tmux: Actually fix nvim session restoring
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