nvm: use $HOME instead of tilde expansion

Closes Homebrew/homebrew#50485.

Signed-off-by: Alex Dunn <adunn@ucsb.edu>
master
Christoffer Hamberg 2016-03-28 16:14:04 +03:00 committed by Xu Cheng
parent b9403bd83d
commit 056c770a2d
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ class Nvm < Formula
Add the following to #{shell_profile} or your desired shell
configuration file:
export NVM_DIR=~/.nvm
. $(brew --prefix nvm)/nvm.sh
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
You can set $NVM_DIR to any location, but leaving it unchanged from
#{prefix} will destroy any nvm-installed Node installations