Open1
M1 macbook setup
git補完
にあるとおり、
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh > ~/.git-prompt.sh
source ~/.git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
precmd() { __git_ps1 "%m %1~%F{green}" "%f %# " " (%s)" }