Merge pull request #120 from tomassedovic/issue-39-fix-zsh-error-msg

Supress ZSH "no matches found" error
master
Tim Caswell 2012-07-09 07:34:03 -07:00
commit 96a4488732
1 changed files with 4 additions and 0 deletions

4
nvm.sh
View File

@ -10,6 +10,10 @@ if [ ! -d "$NVM_DIR" ]; then
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}) && pwd)
fi
# Make zsh glob matching behave same as bash
# This fixes the "zsh: no matches found" errors
unsetopt nomatch 2>/dev/null
# Expand a version using the version cache
nvm_version()
{