macos解决“zsh: no matches found“

Posted Locutus

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了macos解决“zsh: no matches found“相关的知识,希望对你有一定的参考价值。

在我们查找文件时,命令行会出现"zsh: no matches found"的报错。解决办法是在~/.zshrc中加入 setopt no_nomatch,然后使用source ~/.zshrc激活。

# vim ~/.zshrc

添加setopt no_nomatch

# source ~/.zshrc

以上是关于macos解决“zsh: no matches found“的主要内容,如果未能解决你的问题,请参考以下文章