Mastering Bash and Terminal (2017)
blockloop.io
blockloop.io
Mastering Bash and Terminal - https://news.ycombinator.com/item?id=13400350 - Jan 2017 (180 comments)
Very handy! (The check also makes sure I am in the repo part of the repo, and not, say, in its .git folder or other non-working folders.)
I don't feel at home at a terminal without it by now, so one of my first installs after brew ;-)
Check out starship[1] if you haven't already. It's a prompt that does just this and more, and works across shells like Bash, fish, zsh, etc.
I wasn’t sure about multi line at first, but really digging it now.
edit: I realize that example fails the speed test vs `ctrl+p, backspace, 2, enter`, but hopefully you can see the value.