fix fnm env

This commit is contained in:
2026-01-17 00:54:34 +01:00
parent 62bc815a4c
commit 4d7b4a744d
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -40,14 +40,14 @@ fi
# Paths # Paths
[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env" [ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"
[ -d "$HOME/go/bin" ] && prepend_path "$HOME/go/bin" prepend_path "$HOME/go/bin"
[ -d "$HOME/.local/bin" ] && prepend_path "$HOME/.local/bin" prepend_path "$HOME/.local/bin"
[ -d "$HOME/.local/scripts" ] && prepend_path "$HOME/.local/scripts" prepend_path "$HOME/.local/scripts"
prepend_path "$HOME/.local/share/fnm"
export PATH export PATH
# fnm # fnm
if type fnm &>/dev/null; then if type fnm &>/dev/null; then
prepend_path "$HOME/.local/share/fnm"
eval $(fnm env --shell bash) eval $(fnm env --shell bash)
fi fi
+1 -1
View File
@@ -3,6 +3,7 @@ fish_add_path $HOME/go/bin
fish_add_path $HOME/.cargo/bin fish_add_path $HOME/.cargo/bin
fish_add_path $HOME/.local/scripts fish_add_path $HOME/.local/scripts
fish_add_path $HOME/.local/bin fish_add_path $HOME/.local/bin
fish_add_path $HOME/.local/share/fnm
# man # man
if type -q bat if type -q bat
@@ -29,6 +30,5 @@ set -x -g GPG_TTY (tty)
# fnm # fnm
if type -q fnm if type -q fnm
fish_add_path $HOME/.local/share/fnm
eval (fnm env --shell fish) eval (fnm env --shell fish)
end end