Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 288 Bytes

File metadata and controls

10 lines (6 loc) · 288 Bytes

Customize your Mac terminal to show git branch name on the prompt

download .git-prompt.sh file on your home folder and copy and these at end of your existing .zshrc file

source ~/.git-prompt.sh

setopt PROMPT_SUBST ; PS1='%n@%m %~%F{010}$(__git_ps1 " (%s)")%f$ '