macOS 10.15 catalina からデフォルトシェルがbashからzshrcになりました。
今までいい感じだったコマンドプロンプトを作り直さないといけません。やれやれですね。
今までのbashの設定とほぼ変わらない形で以下を作ってみました。
ブランチ名の右側の記号が微秒に違いますが、使いづらい場合は徐々に修正していこうと思います。
autoload colors colors autoload -Uz vcs_info setopt prompt_subst zstyle ':vcs_info:git:*' check-for-changes true zstyle ':vcs_info:git:*' stagedstr "!" zstyle ':vcs_info:git:*' unstagedstr "+" zstyle ':vcs_info:*' formats ' (%b%c%u%f)' zstyle ':vcs_info:*' actionformats '(%a|%b)' precmd() { vcs_info } PROMPT='%{${fg[blue]}%}%~%{${reset_color}%}${vcs_info_msg_0_}$ '