switch unsetopt to the thing creationix has

This commit is contained in:
Thomas Levine 2012-10-10 21:24:57 -04:00
parent 2e5a7914c5
commit 8827d6d14a

2
nvm.sh
View File

@ -12,7 +12,7 @@ fi
# Make zsh glob matching behave same as bash
# This fixes the "zsh: no matches found" errors
if [[ `which unsetopt 2>/dev/null` ]]; then
if [ ! -z "$(which unsetopt 2>/dev/null)" ]; then
unsetopt nomatch 2>/dev/null
fi