无法禁用 Zsh 中的启动消息
当我启动 Zsh 时,我得到以下信息。
Usage: prompt <options>
Options:
-c Show currently selected theme and parameters
-l List currently available prompt themes
-p [<themes>] Preview given themes (defaults to all)
-h [<theme>] Display help (for given theme)
-s <theme> Set and save theme
<theme> Switch to new theme immediately (changes not saved)
它似乎是由某个主题文件设置的,因为相同的文本是 此处。
如何禁用 Zsh 中的通知?
I get the following when I start my Zsh.
Usage: prompt <options>
Options:
-c Show currently selected theme and parameters
-l List currently available prompt themes
-p [<themes>] Preview given themes (defaults to all)
-h [<theme>] Display help (for given theme)
-s <theme> Set and save theme
<theme> Switch to new theme immediately (changes not saved)
It seems to be set by some theme file, since the same text is here.
How can you disable the notification in Zsh?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这不是启动消息。 这是在使用不带参数或错误参数的
prompt
命令时显示的错误/默认帮助消息。 找出您在哪里使用它,然后修复/删除它。This isn't a startup message. It's the error/default help message displayed when the
prompt
command is used without arguments or erroneous arguments. Find out where you're using it, and fix/delete it.您需要搜索 zsh 在启动时加载的文件,这里有一个 列表他们的文档
查找配置错误的提示命令行,并尝试将其注释掉或更好地修复它。
You'll want to search through the files that zsh loads on startup, here is a list from their documentation
Look for a misconfigured prompt command line and try commenting it out or better fixing it.