更新时间:2022-12-04 19:59:36
在Git Bash中:
In Git Bash:
cd ~
notepad .bashrc
在记事本中,添加行PS1="foobar>"
(用所需的任何文本替换foobar>
)
In notepad, add the line PS1="foobar>"
(replace foobar>
with whatever text you want)
保存~/.bashrc
后,在Git Bash中运行命令:
After saving ~/.bashrc
, in Git Bash, run the command:
source ~/.bashrc
您可能会发现此在线.bashrc
生成器对于尝试查找所需的提示很有用.
You may find this online .bashrc
generator useful to experiment with to find a prompt you like.