How to customise your shell prompt

By default, the shell prompt on Mac OS X is somewhat cluttered so I customised it to be nice and minimalistic.

1. Open your terminal.

2. Type in the following command to open your bash profile file with Sublime:

subl .bash_profile

3. In your bash profile file, add the following on a new line:

export PS1="\$ \w: "

\w gives the Current working directory.

If you are not root, \$ inserts a "$"; if you are root, you get a "#".

4. Logout from your Mac's user session:

5. Log back into your computer

6. Open Terminal.

And voilà!

More on how to further customise your shell prompt.