Here is yet another 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 (
- markers indicating staged/unstaged changes,
1after branch name indicates dirty working tree,
2after branch name indicates staged changes,
- 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).