Changes:
- nodenv and nvm now honors (and prioritizes) `$XDG_CONFIG_HOME` over
`$HOME` to lookup local nodenv/nvm installation.
- Make `nvm` loading lazy (via `--no-use` argument).
- Remove redundant NODENV_ROOT or NVM_DIR, respective script already
set them up.
- Adhere to more idiomatic Zsh operation and minimize external command
usage (like `sed`).
master
Indrajit Raychaudhuri4 years agocommitted byIndrajit Raychaudhuri
This will be loaded automatically if nvm is installed in `$NVM_DIR`,
_`~/.nvm`_, or nvm is installed with Homebrew.
_`$XDG_CONFIG_HOME/nvm`_, _`~/.nvm`_, or is installed with homebrew.
## nodenv
@ -18,7 +18,7 @@ Node versions. It is simple and predictable, Just Works, and is rock solid in
@@ -18,7 +18,7 @@ Node versions. It is simple and predictable, Just Works, and is rock solid in
production. nodenv is forked from the popular [_rbenv_][7].
This will be loaded automatically if nodenv is installed in `$NODENV_ROOT`,
_`~/.nodenv`_, or `nodenv` is on the path.
_`$XDG_CONFIG_HOME/nodenv`_, _`~/.nodenv`_, or `nodenv` is on the path.
## Functions
@ -46,11 +46,12 @@ _The authors of this module should be contacted via the [issue tracker][4]._
@@ -46,11 +46,12 @@ _The authors of this module should be contacted via the [issue tracker][4]._