• Mac OS X,  Mac OS X Server,  Ubuntu,  Unix

    Adding Color to & Customizing the Shell Prompt

    As promised in the article on colorizing the terminal, let’s look at how to customize your bash prompt.  First note that text as well as the following can be used in your string. a – ASCII bell d – date e – ASCII escape h – LocalHostName H – HostName j – number of jobs managed by shell l – basename of terminal device name n – insert a newline r – insert a carriage return @ – time in 12-hour HH:MM format A – time in 24-hour HH:MM format t – time in 12-hour HH:MM:SS format T – time in 24-hour HH:MM:SS format u – current user v –…