fnm envs
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
# From archlinux's /etc/profile
|
# From archlinux's /etc/profile
|
||||||
append_path() {
|
append_path() {
|
||||||
|
[[ -z "$1" ]] && return
|
||||||
|
[[ -d "$1" ]] || return
|
||||||
case ":$PATH:" in
|
case ":$PATH:" in
|
||||||
*:"$1":*) ;;
|
*:"$1":*) ;;
|
||||||
*)
|
*)
|
||||||
@@ -10,6 +12,8 @@ append_path() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
prepend_path() {
|
prepend_path() {
|
||||||
|
[[ -z "$1" ]] && return
|
||||||
|
[[ -d "$1" ]] || return
|
||||||
case ":$PATH:" in
|
case ":$PATH:" in
|
||||||
*:"$1":*) ;;
|
*:"$1":*) ;;
|
||||||
*)
|
*)
|
||||||
@@ -43,6 +47,7 @@ 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
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ end
|
|||||||
set -x -g GPG_TTY (tty)
|
set -x -g GPG_TTY (tty)
|
||||||
|
|
||||||
# fnm
|
# fnm
|
||||||
# if type -q fnm
|
if type -q fnm
|
||||||
# eval (fnm env --shell fish)
|
fish_add_path $HOME/.local/share/fnm
|
||||||
# end
|
eval (fnm env --shell fish)
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user