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:
parent
067377b4a2
commit
d8345ef223
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue