vanadium/fish: source environment path properly

This commit is contained in:
Primrose 2025-05-11 22:45:07 +02:00
parent 54b7d1290a
commit 03c68db090
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -48,8 +48,10 @@ in {
if test -d ~/.environments if test -d ~/.environments
for file in ~/.environments/* for file in ~/.environments/*
if not string match -q --regex -- '-link$' $file 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 # - global: make sure the path added is scoped to the instance of the shell
fish_add_path --append $file/bin # 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 end
end end