Custom ANSI-colored, Bash command prompt

Software Engineering 1479 views

Here's how to change your bash prompt to something more useful with ANSI colors:

export PS1="\n\e[0;36m\u\e[1;36m@\e[0;36m\h\e[0m \e[1;30m\d, \T\e[0m\n\e[1;30m[\e[0m\e[1;33m\w\e[1;30m]$\e[0m "
Add to your .bashrc file