mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Merge pull request #120 from tomassedovic/issue-39-fix-zsh-error-msg
Supress ZSH "no matches found" error
This commit is contained in:
commit
96a4488732
4
nvm.sh
4
nvm.sh
@ -10,6 +10,10 @@ if [ ! -d "$NVM_DIR" ]; then
|
|||||||
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}) && pwd)
|
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}) && pwd)
|
||||||
fi
|
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
|
# Expand a version using the version cache
|
||||||
nvm_version()
|
nvm_version()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user