NerdCred++

Resources for customizing your bash prompt

View project onGitHub

NerdCred++; The art of customizing your bash prompt.

So you want a shiny lightning bolt on your bash prompt, but don't know where to start, huh? Well, hopefully you've been able to attend our workshop in order to get the basics down, but if not we've got you covered!

The slides to our workshop cover the explanation of components that make up an informative bash prompt and can be found here

Fire up your terminal

Open up your bash profile and get customizing!

$ vim ~/.bashrc

Done? Source your bash profile to apply your changes

$ source ~/.bashrc

Cheatsheets

We've made it easy to semantically add color codes and details to your prompt. Add these to your bash profile to make customization a breeze.

Display your Ruby version

Helpful if you use a ruby manager to set different versions for projects

The following snippet will add the ruby version before the current working directory

PS1='$(ruby -e "print RUBY_VERSION") \W\$ '

Will turn into

1.9.3 toDoApp$

Feeling Lazy?

Check out these bash prompt builders:

Want something more fabulous?

Check out Rachel's rainbow prompt - An informative and fancy bash prompt for Git users with a fabulous rainbow twist.