Browse Source

Hide errors from `which unsetopt`

Errors occurred when it was run in bash.
master
Thomas Levine 13 years ago
parent
commit
9190297d5e
  1. 2
      nvm.sh

2
nvm.sh

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

Loading…
Cancel
Save