How can I modify my zsh terminal prompt to show the current working directory and current git branch (if applicable)?

后端 未结 0 1195
清歌不尽
清歌不尽 2021-02-08 09:14

I am running macOS Big Sur v11.2. I would like my zsh terminal prompt to look like this:

/directoryName/ (gitbranch) $

Thank you!

相关标签:
回答
  • 消灭零回复
提交回复
热议问题