Browse Source
- Operating system and version: Mac OS X Mojave - What happened? $NVM_DIR was set to nvm - What did you expect to happen? $NVM_DIR should be set to .nvm I added the following line from the README to my .zshrc: ``` export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm ``` I couldn't figure out why nvm wasn't loading, until I realized that `echo NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"` outputs `NVM_DIR=nvm`. Changing the line to `export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/}.nvm"` fixed the problem. This outputs `NVM_DIR=.nvm` as expected. I tested this and the same behavior holds true in Bash as well.
![contact@papper.me](/assets/img/avatar_default.png)
![Jordan Harband](/assets/img/avatar_default.png)
2 changed files with 2 additions and 6 deletions
Loading…
Reference in new issue