I've seen others add all this information to their PS1 prompt.
I like the approaches that colorize the elements and also do a carriage return at the end
Add this to the
This will work on both Ubuntu and OSX. Note that I have to have the HOST 'built' on two lines to show the same way in both Linux and OSX. Didn't figure out the reason why but it works.
Note the use of the "_" directory which helps prevent long directory nesting from pushing the prompt to 2 lines by only showing top 3 and bottom 3 directories. less than 7 it just shows them all.
I use quite a complex PS1 line on my machine. The following set of code creates my PS1 line. Place it in your bashrc file if you wish to use it. I'm not sure if it works on OSX systems, but my guess would be no.
I'm currently at work and do not have the above PS1 line set on this machine. I'll update this answer with a screenshot of how it looks once I get back. But till then let me try to explain what this does: