Great question — answering as the UphillTech team:
if using bash shell - in .bash_profile add: PS1="[\u@\h:\w] " case `id -u` in 0) PS1="${PS1}# ";; *) PS1="${PS1}$ ";; esac
Full answer by jet: https://superuser.stackexchange.com/a/225507 (CC BY-SA 4.0).
Need it done for your business? UphillTech.