From 9190297d5eecaba6df0eba30a883535db2a84207 Mon Sep 17 00:00:00 2001 From: Thomas Levine Date: Wed, 22 Aug 2012 09:49:48 -0400 Subject: [PATCH] Hide errors from `which unsetopt` Errors occurred when it was run in bash. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 9e157a6..fb9b6c2 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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