diff options
author | Luke Childs <lukechilds123@gmail.com> | 2016-08-07 18:36:44 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-08-07 19:36:44 +0200 |
commit | a7de0fabd7ebbf1776942a8c7fde8ee33ed681b0 (patch) | |
tree | e9b1da02aeb49d292618d08ae34ccf1ea8d15285 /plugins/nvm/_nvm | |
parent | 7654b16b3963844e5079a8935eb93f108c52f273 (diff) | |
download | zsh-a7de0fabd7ebbf1776942a8c7fde8ee33ed681b0.tar.gz zsh-a7de0fabd7ebbf1776942a8c7fde8ee33ed681b0.tar.bz2 zsh-a7de0fabd7ebbf1776942a8c7fde8ee33ed681b0.zip |
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
Diffstat (limited to 'plugins/nvm/_nvm')
-rw-r--r-- | plugins/nvm/_nvm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/nvm/_nvm b/plugins/nvm/_nvm index a95c9e375..1414dcbb1 100644 --- a/plugins/nvm/_nvm +++ b/plugins/nvm/_nvm @@ -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=( |