Instantly share code, notes, and snippets.
After several abortive attempts because I'm bash-challenged, this seems to work as you'd expect.
Makes my prompt look like:
[1.9.3-p125] (master) mazikeen:./metasploit-framework$
Hrm, rvm-prompt may not work any more. Oh well, it's not like we're doing a lot of ruby version changing any more these days.
As of today, it looks like rvm-prompt once again functions correctly.
Very good but I don't like that it's showing up [ ] before promt while in interactive shell.
I commented that, and uncomment only when needed.
thank you for sharing :)
You could use git branch 2> /dev/null | sed -n 's/^\* //p' and put the parens in your $PS1. :)
git branch 2> /dev/null | sed -n 's/^\* //p'