How to setup BASH custom prompt in Ubuntu
I wanted two things:
- the time in my prompt
- a colour prompt
Basics:
- it’s located in: ~/.bashrc
- uses Environment Variable: PS1
- time is inserted using: \t
time
I started here: http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
colour
http://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
PixelBeat discussion on coloured command prompts
http://www.pixelbeat.org/docs/terminal_colours/
how to guid for customing the command prompt
http://tldp.org/HOWTO/Bash-Prompt-HOWTO/