超级终端显示 ~% 而不是 $

bmc*_*bmc 5 macos terminal hyperterminal

重新启动在 MacOs Catalina 10.15.3 上运行的 Mac 后,Hyper 显示

username@MacBook-Air ~ %

而不是常规的 $. 为什么会这样,百分比符号是什么意思?

我也无法使用命令行检查我的超级版本,见下文:

用户名@MacBook-Air ~ % hyper --version

选项“版本”未知。以下是所有可用选项的列表:

用法:hyper [选项] [命令]

命令:

<default>                    Launch Hyper
d, docs, h, home             Open the npm page of a plugin
help                         Display help
i, install                   Install a plugin
ls, list                     List installed plugins
lsr, list-remote, ls-remote  List plugins available on npm
s, search                    Search for plugins on npm
u, uninstall, rm, remove     Uninstall a plugin
version                      Show the version of hyper
Run Code Online (Sandbox Code Playgroud)

选项:

-h, --help     Output usage information
-v, --verbose  Verbose mode (disabled by default)
Run Code Online (Sandbox Code Playgroud)

谢谢!

Phi*_*ppe 5

百分号没有特定的含义

它与超级终端没有太大关系,而是与您使用的外壳(bash 或 zsh)有关。

通常 bash 使用$,而 zsh 使用%.

看一看:谷歌:bash+zsh+prompt