From 46154e86c1221eeec76ae569868604085be0b21b Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Mon, 12 Jul 2021 11:56:34 +0200 Subject: [PATCH] zsh: switch from nvm to fnm --- .zshrc.local | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.zshrc.local b/.zshrc.local index 89e6511..bb4aefc 100644 --- a/.zshrc.local +++ b/.zshrc.local @@ -46,13 +46,10 @@ fi [ -s "/usr/share/fzf/key-bindings.zsh" ] && . "/usr/share/fzf/key-bindings.zsh" [ -s "/usr/share/fzf/completion.zsh" ] && . "/usr/share/fzf/completion.zsh" -# NVM -export NVM_DIR="$HOME/.nvm" -NODE_VERSION="v14.17.1" -NODE_PATH="$NVM_DIR/versions/node/$NODE_VERSION" -[ -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 +# fnm +if hash keychain 2>/dev/null; then + eval "$(fnm env)" +fi # SDKMAN! export SDKMAN_DIR="$HOME/.sdkman"