1
0
mirror of https://github.com/nvm-sh/nvm.git synced 2025-10-13 04:25:50 +08:00

Merge pull request #324 from hurrymaplelad/quiet_type

Slurp stderr from  test unsetopt
This commit is contained in:
Jordan Harband 2013-12-11 18:32:06 -08:00
commit cf515c4ff8

2
nvm.sh
View File

@ -9,7 +9,7 @@
# Make zsh glob matching behave same as bash
# This fixes the "zsh: no matches found" errors
if type "unsetopt" > /dev/null; then
if type "unsetopt" > /dev/null 2>&1; then
unsetopt nomatch 2>/dev/null
NVM_CD_FLAGS="-q"
fi