简体   繁体   English

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

[英]Hyper Terminal is showing ~% instead of $

After restarting my Mac which is running on MacOs Catalina 10.15.3, Hyper shows重新启动在 MacOs Catalina 10.15.3 上运行的 Mac 后,Hyper 显示

username@MacBook-Air ~ %

instead of the regular $.而不是常规的 $。 Why is that and what does the percentage symbol mean?为什么会这样,百分比符号是什么意思?

Im also not able to check the version of my hyper using the command line, see below:我也无法使用命令行检查我的超级版本,见下文:

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

The option "version" is unknown.选项“版本”未知。 Here's a list of all available options:以下是所有可用选项的列表:

Usage: hyper [options] [command]用法:hyper [选项] [命令]

Commands:命令:

<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

Options:选项:

-h, --help     Output usage information
-v, --verbose  Verbose mode (disabled by default)

Thanks!谢谢!

The percent sign does not have a particular meaning .百分号没有特定的含义

It has not much to do with Hyper Terminal, but with the shell you use (bash or zsh).它与超级终端没有太大关系,但与您使用的 shell(bash 或 zsh)有关。

Usually bash uses $ , whereas zsh uses % .通常 bash 使用$ ,而 zsh 使用%

Take a look at: Google: bash+zsh+prompt看看:谷歌:bash+zsh+prompt

Found this answer on medium.com's article "Customize the MacOS Terminal":在 medium.com 的文章“自定义 MacOS 终端”中找到了这个答案:

"As of 2019, macOS Catalina has adopted Z Shell, or zsh for short, as the default login shell. Z Shell is a Unix shell that acts as an interactive login shell and command line interpreter for shell scripting." "As of 2019, macOS Catalina has adopted Z Shell, or zsh for short, as the default login shell. Z Shell is a Unix shell that acts as an interactive login shell and command line interpreter for shell scripting."

https://medium.com/dev-genius/customize-the-macos-terminal-zsh-4cb387e4f447 https://medium.com/dev-genius/customize-the-macos-terminal-zsh-4cb387e4f447

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM