Skip to content

Commit

Permalink
Work around nvm not supporting NVM_DIR being a symlink.
Browse files Browse the repository at this point in the history
Use realpath to get the actual location. See
nvm-sh/nvm#617 for the bug.
  • Loading branch information
tornewuff committed Jun 18, 2016
1 parent e2304f9 commit d8dca78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions home/.bashrc.d/51-nvm.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Load nvm to get node support.
[ -r ~/.nvm/nvm.sh ] && . ~/.nvm/nvm.sh
[ -r ~/.nvm/bash_completion ] && . ~/.nvm/bash_completion
export NVM_DIR=$(realpath ~/.nvm)
[ -r "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -r "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"

0 comments on commit d8dca78

Please sign in to comment.