diff options
| author | 2026-05-13 13:43:34 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:34 +0100 | |
| commit | 3b1790712c54e330cde1c7ba7f1f7db2b97de19f (patch) | |
| tree | 369f6c71864bde3d70e7f84740db6ae937a91335 | |
| parent | 550e8d555b47e01679035c94728a6ff21d5089cd (diff) | |
| download | dotfiles-3b1790712c54e330cde1c7ba7f1f7db2b97de19f.tar.gz dotfiles-3b1790712c54e330cde1c7ba7f1f7db2b97de19f.tar.bz2 dotfiles-3b1790712c54e330cde1c7ba7f1f7db2b97de19f.zip | |
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.
| -rw-r--r-- | justfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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: |
