2021年2月7日星期日

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

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

/directoryName/ (gitbranch) $

Thank you!

https://stackoverflow.com/questions/66095079/how-can-i-modify-my-zsh-terminal-prompt-to-show-the-current-working-directory-an February 08, 2021 at 10:05AM

没有评论:

发表评论