Oh-my-zsh 哈希(磅)符号错误模式或未找到匹配 [英] Oh-my-zsh hash (pound) symbol bad pattern or match not found
问题描述
我很确定这与我的 Oh-my-zsh 配置有关,但我不知道它是什么.
I'm quite sure is something dealing with my Oh-my-zsh configuration, but I can't figure out what it is.
当我在我的 git 命令中使用#"符号时(但在其他所有东西上也是如此,例如ls #2")我收到错误模式"错误或找不到匹配项"
When I use a "#" symbol in my git command (but on everything else too, like 'ls #2' for instance) I get 'bad pattern' error or 'no match found'
我想是关于计算一些东西,但我找不到在哪里配置它.
I guess is about counting something, but I can't find where to configure it.
I.E.
➜ demo git:(adlist) git push origin adlist#3
zsh: no matches found: adlist#3
或
➜ demo git:(adlist) git push origin #3-adlist
zsh: bad pattern: #3-adlist
推荐答案
使用单引号:
git push origin 'adlist#3'
git push origin #3-adlist
在 zsh 中 #
用于去除模式.请参阅:http://zsh.sourceforge.net/Guide/zshguide05.html 下Heading 标准形式:去除模式
In zsh #
is used for pattern removal. See: http://zsh.sourceforge.net/Guide/zshguide05.html under the heading Standard forms: pattern removal
这篇关于Oh-my-zsh 哈希(磅)符号错误模式或未找到匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!