From 3b1790712c54e330cde1c7ba7f1f7db2b97de19f Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:34 +0100 Subject: fix(nvim-update): cd $HOME so auto-session's suppressed_dirs kicks in The 'nvim-update' just recipe runs an admin chore, not a project edit; loading and saving a session for it is wrong. session.lua already treats $HOME and / as suppressed_dirs, so a leading 'cd &&' (which defaults to $HOME) gives us the right behaviour without touching nvim config or adding a special-case flag. --- justfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 653711c..a5df41a 100644 --- a/justfile +++ b/justfile @@ -52,9 +52,11 @@ flatpak-update: rm -f "$tmp" done -# Update Neovim plugins (vim.pack) and Mason tools, interactively so the diff buffer is visible +# Update Neovim plugins (vim.pack) and Mason tools, interactively so the diff buffer is visible. +# `cd` to $HOME first so auto-session's suppressed_dirs rule kicks in and we don't +# load/save a project session for what's really just an admin chore. nvim-update: - nvim '+lua require("config.update").run()' + cd && nvim '+lua require("config.update").run()' # Re-add changes from live files back into the repo; pass a path to target one, or omit for all re-add *paths: -- cgit v1.3.1