From 03c68db090c2d55675fdb5a06a28aef04296f63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 11 May 2025 22:45:07 +0200 Subject: [PATCH] vanadium/fish: source environment path properly --- nix/configurations/vanadium/home/programs.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nix/configurations/vanadium/home/programs.nix b/nix/configurations/vanadium/home/programs.nix index 82f35155..e2590ad4 100644 --- a/nix/configurations/vanadium/home/programs.nix +++ b/nix/configurations/vanadium/home/programs.nix @@ -48,8 +48,10 @@ in { if test -d ~/.environments for file in ~/.environments/* if not string match -q --regex -- '-link$' $file - # Append so if invoked from a nix shell, doesn't mess with the shell's specific paths - fish_add_path --append $file/bin + # - global: make sure the path added is scoped to the instance of the shell + # https://github.com/fish-shell/fish-shell/issues/8604#issuecomment-2854550904 + # - append: make my own environment come after a nix shell even if invoked by one + fish_add_path --global --append --move $file/bin end end end