Notes
What’s actually going on is in comments in the prompt file, but the demonstration should make it fairly obvious ;) Just source it in your bashrc!
Requires a font patched for use with vim-powerline, unless you get rid of the fancy unicode as is done if TERM=linux. This uses the git-prompt file from git’s bash_completion as well.
chuim said about 10 years ago
Hey there. Cool promtp! :)
A suggestion on how to make your git branch gatherer maybe a bit nicer:
get_git_branch() { _git_branch_ps1=
git rev-parse --abbrev-ref HEAD
; } # notsobadchuim said about 10 years ago
And also: what’s the specific patched font you are using in the scrot?