Here is [yet another]{zsh-git-prompt} update to the series. I’ve updated my git prompt again,
now using the zsh 4.3.7 built in vcs_info
module. This time the motivation came
from Zsh Prompt Magic article.
Here is what it looks like now:
Everything is now self contained in one file: S60_prompt. Grab it and source it into your zsh config.
The features are:
- name of current branch,
- git repo state (
rebase
,am
,bisect
,merge
, etc), - markers indicating staged/unstaged changes,
- little
1
after branch name indicates dirty working tree, - little
2
after branch name indicates staged changes,
- little
- highlight depth decended into the repository on the right,
- show failure of commands via prompt background change,
- show command/insert mode when using vi mode (
set -o vi
).