Put git status in Zsh command prompt
Edit ~/.zshrc and add
. ~/.git-prompt.sh
GIT_PS1_SHOWCOLORHINTS=1
setopt PROMPT_SUBST ; PS1='[%n@%m %c$(__git_ps1 " (%s)")]\$ '
Thanks to Git
Edit ~/.zshrc and add
. ~/.git-prompt.sh
GIT_PS1_SHOWCOLORHINTS=1
setopt PROMPT_SUBST ; PS1='[%n@%m %c$(__git_ps1 " (%s)")]\$ '
Thanks to Git