Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 如何在Mac终端中仅显示$?_Macos_Terminal - Fatal编程技术网

Macos 如何在Mac终端中仅显示$?

Macos 如何在Mac终端中仅显示$?,macos,terminal,Macos,Terminal,我只想在我的终端(mac)中显示$,而不是:Macintosh:~username$ 我试图在设置中更改它,但没有成功。。。 有人知道怎么做吗 提前谢谢 这可以通过编辑~/.bash\u profile 网上有很多教程。编辑~/.bash\u profile 添加以下行:export PS1=“$”尝试安装'oh my zsh'

我只想在我的终端(mac)中显示$,而不是:Macintosh:~username$

我试图在设置中更改它,但没有成功。。。 有人知道怎么做吗


提前谢谢

这可以通过编辑
~/.bash\u profile


网上有很多教程。

编辑
~/.bash\u profile


添加以下行:
export PS1=“$”

尝试安装'oh my zsh'