Speed up nvm loading when open a new shell

Because `brew --prefix nvm` is too slow and the result is usually a
fixed value. So run this command everytime will waste a lot of time to
get the path.

Closes #6246.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
zhuyan 2016-10-25 17:50:41 +08:00 committed by Tomasz Pajor
parent 067377b4a2
commit d8345ef223

View file

@ -25,7 +25,7 @@ class Nvm < Formula
configuration file:
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
. "#{opt_prefix}/nvm.sh"
You can set $NVM_DIR to any location, but leaving it unchanged from
#{prefix} will destroy any nvm-installed Node installations