export PS1="\u@\h\[\e[1;4;33m\][LIVE]\[\e[0m\]:\W$ "

\u@\h\

  • user @ hostname

\[\e[1;4;33m\]

  • enclosing “\[” and “\]” – to /not/ confuse the screen mode so that auto wrapping is preserved.
  • “\e” – is the escape, you could use “33” too
  • “1;4;33” – “1” is for “bold”, “4” is for “underline”, and “33” is for “yellow”, you can add background colour by adding the ascii code for background colour – just separate these numbers with “;”

\[\e[0m\]

  • 0 resets to normal display

\W

  • working directory