假设我的提示看起来像这样(_ 代表我的光标)
~ % _
有什么办法可以让它看起来像这样
~ % _ [some status]
这个问题最初是关于 zsh 的,但现在有了其他答案。
bash prompt zsh
bash ×1
prompt ×1
zsh ×1