GeistHaus
log in · sign up

How a Simple Bash Prompt became a complicated problem

blog.brujordet.no

tl;dr: This is a ´problem -> solution´ type post, reflecting on problems I encountered while writing a bash prompt generator. A small need for a more informative prompt This all started about 10 years ago when I was working as a Java consultant in Oslo. We had just moved from SVN to git, and the concept of feature branches was suddenly a thing. I hadn’t really been very involved with VCS before git, but now I felt like I understood it. (I didn’t). So I wanted to add the current git branch to my prompt. I quickly ended up with something like this:

0 pages link to this URL

No pages have linked to this URL yet.