My Bash Prompt

Firstly, rbenv, Here I Come

After being a long time, die hard RVM user, I recently decided to switch over to rbenv due to some ongoing bash weirdness that seemly went away after removing RVM. I also just wanted to try to see what the rbenv world would be like. As a result of doing this, I had to tweak my long-standing bash prompt configuration, since I like to include the current version of Ruby in my prompt.

My Updated Bash Prompt

I found this nifty Gist which gave me a good start on how to capture the current rbenv version in a bash function. So here is my new prompt showing ruby version, git branch and working directory:

My Bash Prompt

… configured by this script (embedded below) …