Skip to content

Commit

Permalink
nvm brakes if part of the path is a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
compilenix committed Jun 14, 2018
1 parent 3264c60 commit 9ced7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9ced7c5

Please sign in to comment.