This commit is contained in:
2026-01-17 00:53:15 +01:00
parent c131e3ec28
commit 62bc815a4c
2 changed files with 9 additions and 3 deletions
+5
View File
@@ -2,6 +2,8 @@
# From archlinux's /etc/profile
append_path() {
[[ -z "$1" ]] && return
[[ -d "$1" ]] || return
case ":$PATH:" in
*:"$1":*) ;;
*)
@@ -10,6 +12,8 @@ append_path() {
esac
}
prepend_path() {
[[ -z "$1" ]] && return
[[ -d "$1" ]] || return
case ":$PATH:" in
*:"$1":*) ;;
*)
@@ -43,6 +47,7 @@ export PATH
# fnm
if type fnm &>/dev/null; then
prepend_path "$HOME/.local/share/fnm"
eval $(fnm env --shell bash)
fi
+4 -3
View File
@@ -28,6 +28,7 @@ end
set -x -g GPG_TTY (tty)
# fnm
# if type -q fnm
# eval (fnm env --shell fish)
# end
if type -q fnm
fish_add_path $HOME/.local/share/fnm
eval (fnm env --shell fish)
end