From 9ced7c5bdda92b55e9a9b16295a5aa921133044d Mon Sep 17 00:00:00 2001 From: Compilenix Date: Fri, 15 Jun 2018 00:27:31 +0200 Subject: [PATCH] nvm brakes if part of the path is a symlink see https://github.com/creationix/nvm/issues/617#issuecomment-358672415 --- home/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.zshrc b/home/.zshrc index 9606881..9a37a49 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -435,7 +435,7 @@ zstyle ':completion:*:hosts' hosts $hosts function enable-nvm { echo "loading Node Version Manager..." - export NVM_DIR="$HOME/.nvm" + export NVM_DIR="$(realpath $HOME/.nvm)" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion }