mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium/fish: source environment path properly
This commit is contained in:
parent
54b7d1290a
commit
03c68db090
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue