This is a simple version with no colors, showing hostname and working directory before the $ or # symbol.
Let's put the bash bit at the end of our .bashrc
The bash bit
g0:~$cat .bashrc | tail -7 if [ $(whoami) = "root" ];then PS1="$(hostname):\\w#" else PS1="$(hostname):\\w$" fi
let's put it in root's .bashrc as well
g0:~$sudo bash g0:~#cat /root/.bashrc |tail -7 if [ $(whoami) = "root" ];then PS1="$(hostname):\\w#" else PS1="$(hostname):\\w$" fi
cool, now $ denotes a user and # denotes the root user
g0:~#whoami root g0:~#exit exit g0:~$whoami g g0:~$
We can also put it in /etc/skel/.bashrc so every new user from now has it in his .bashrc.