Displaying the current repo in your prompt
I tend to nest repos a lot in my usual workflow (The common elements are generally ~/code/ext/[repo], but with the pull_ext infrastructure I wrote, >5 levels of nesting are not uncommon).
To work around this, I wanted my prompt to hilight the root of the current repository and also tell me what type of repo it is.
vcs_info does this, but I find the configuration quite inflexible, and some of the tests are quite expensive so I decided to quickly hack something together.
I arrived at
This entry was posted in Articles
and tagged environment
. Bookmark the permalink