zsh: switch from nvm to fnm
This commit is contained in:
parent
57ff2f1938
commit
46154e86c1
1 changed files with 4 additions and 7 deletions
11
.zshrc.local
11
.zshrc.local
|
@ -46,13 +46,10 @@ fi
|
||||||
[ -s "/usr/share/fzf/key-bindings.zsh" ] && . "/usr/share/fzf/key-bindings.zsh"
|
[ -s "/usr/share/fzf/key-bindings.zsh" ] && . "/usr/share/fzf/key-bindings.zsh"
|
||||||
[ -s "/usr/share/fzf/completion.zsh" ] && . "/usr/share/fzf/completion.zsh"
|
[ -s "/usr/share/fzf/completion.zsh" ] && . "/usr/share/fzf/completion.zsh"
|
||||||
|
|
||||||
# NVM
|
# fnm
|
||||||
export NVM_DIR="$HOME/.nvm"
|
if hash keychain 2>/dev/null; then
|
||||||
NODE_VERSION="v14.17.1"
|
eval "$(fnm env)"
|
||||||
NODE_PATH="$NVM_DIR/versions/node/$NODE_VERSION"
|
fi
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" --no-use
|
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
|
|
||||||
[ -d "$NODE_PATH/bin" ] && export PATH=$NODE_PATH/bin:$PATH
|
|
||||||
|
|
||||||
# SDKMAN!
|
# SDKMAN!
|
||||||
export SDKMAN_DIR="$HOME/.sdkman"
|
export SDKMAN_DIR="$HOME/.sdkman"
|
||||||
|
|
Loading…
Reference in a new issue