From 87f15d387cdbd3845b5c68635d0c191bf3153389 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 24 Mar 2024 16:22:16 +0100 Subject: Dotfiles: Tmux: Actually fix nvim session restoring --- dotfiles/tmux.conf | 3 ++- hosts/configuration.nix | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 2142836..05525c2 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -105,6 +105,7 @@ alsa-utils python3 killall + moreutils ripgrep gcc wget -- cgit 1.4.1