From 9c2ceaf763b599a1f44cd0d57f08c0edab247538 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 13 Jan 2026 15:42:27 +0100 Subject: [PATCH] minor fix --- modules/tmux.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tmux.nix b/modules/tmux.nix index 4502641..6d22234 100644 --- a/modules/tmux.nix +++ b/modules/tmux.nix @@ -18,7 +18,7 @@ in extraConfig = '' set -g @resurrect-strategy-nvim 'session' set -g @resurrect-processes 'nvim lazygit claude ssh' - set -g @resurrect-hook-post-save-all 'target=$(readlink -f ~/.tmux/resurrect/last); sed -i "" "s|/nix/store/[^/]*/bin/nvim --cmd .*|nvim|g" "$target"' + set -g @resurrect-hook-post-save-all 'target=$(readlink -f ~/.tmux/resurrect/last); perl -i -pe "s|/nix/store/[^/]*/bin/nvim --cmd .*|nvim|g" "$target"' ''; } {