Fish: Add env stuff for nvm

This commit is contained in:
hedy 2022-03-31 17:50:59 +08:00
parent 412319de57
commit 33724ae421
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
2 changed files with 7 additions and 0 deletions

View File

@ -32,3 +32,5 @@ export XDG_USER_CONFIG_DIR="$XDG_CONFIG_HOME"
export LD_LIBRARY_PATH="$HOME/local/lib/x86_64-linux-gnu/:$HOME/local/lib"
export PKG_CONFIG_PATH="$HOME/local/lib/x86_64-linux-gnu/pkgconfig:$HOME/local/lib/pkgconfig"
export NVM_DIR="$HOME/.config/nvm"

View File

@ -16,3 +16,8 @@ if ! command -v direnv &> /dev/null; then
# TODO: Ignore if direnv hook retured status 1
eval "$(direnv hook $CURSHELL)"
fi
# export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
# ^ Above is commented because it's already in ~/.exportenvs
# Load (the) nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"