在 bash 中,如果我键入以 a 开头的命令'#',bash 会将其作为注释忽略。
即,在 bash 提示符下忽略以下内容:
> # Hi there!
Run Code Online (Sandbox Code Playgroud)
而在 zsh 中:
> # Hi there !
zsh: bad pattern: #
Run Code Online (Sandbox Code Playgroud)
我怎样才能让 zsh 做同样的事情?
这对于“存储”您想稍后运行的命令或在使用共享 tmux/screen 会话时聊天非常有用。
我正在使用“哦,我的 zsh ”