forge
Explore
Log in

Don't you dare go Hollow

Skip missing cargo/deno env files

Browse files at this commit

16d34211a730ce08fccce1968b4e0aa7d1377755Ahmet Kaan GümüşParent: 3fd03f9
  • fix
    • skip missing cargo/deno env files
Show full message
🐛 fix(fish): skip missing cargo/deno env files

rustup.fish and deno.fish sourced env.fish files unconditionally, so a
fresh home printed an error on every shell start. Fall back to adding
~/.cargo/bin to PATH when rustup's env.fish is absent.
.config/fish/conf.d/deno.fishmodified+1 -1
@@ -1 +1 @@
1-source "/home/tahinli/.deno/env.fish"1+test -f "$HOME/.deno/env.fish"; and source "$HOME/.deno/env.fish"
.config/fish/conf.d/rustup.fishmodified+5 -1
@@ -1 +1,5 @@
1-source "$HOME/.cargo/env.fish"1+if test -f "$HOME/.cargo/env.fish"
2+ source "$HOME/.cargo/env.fish"
3+else if test -d "$HOME/.cargo/bin"
4+ fish_add_path -g "$HOME/.cargo/bin"
5+end