- # Add hook for calling git-info before each command.
- add-zsh-hook precmd prompt_precmd
-
- # Set git-info parameters.
- zstyle ':git:info' verbose 'no'
- zstyle ':git:info:branch' format '@%F{cyan}%b%f'
- zstyle ':git:info:clean' format ''
- zstyle ':git:info:added' format '%{%F{green}%}!'
- zstyle ':git:info:modified' format '%{%F{green}%}?'
- zstyle ':git:info:untracked' format '%{%F{magenta}%}?'
- zstyle ':git:info:keys' format \
- 'prompt' '%b%a%m%u'
-