无法禁用 Zsh 中的启动消息

发布于 2024-07-20 06:18:25 字数 668 浏览 1 评论 0原文

当我启动 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

用心笑 2024-07-27 06:18:25

这不是启动消息。 这是在使用不带参数或错误参数的 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.

始终不够 2024-07-27 06:18:25

您需要搜索 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文