nvm plugin improvements (#5265)

* Export $NVM_DIR if it doesn't exist and use it when looking for nvm
* Use $NVM_DIR when looking for nvm for completion
* Use $NVM_DIR when looking for nvm in nvm_prompt_info
This commit is contained in:
Luke Childs 2016-08-07 18:36:44 +01:00 committed by Marc Cornellà
commit a7de0fabd7
3 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#compdef nvm
#autoload
[[ -s ~/.nvm/nvm.sh ]] || return 0
[[ -f "$NVM_DIR/nvm.sh" ]] || return 0
local -a _1st_arguments
_1st_arguments=(