At the beginning of the week I purchased a new MacBook Pro In between working I’m in the process of configuring it as I like it and one of the things that was bugging me was the default shell for the root user. I was foolishly trying to set the the prompt PS1 value in .bash_profile when the default root shell isn’t even bash.
The solution is to switch to the superuser (root) and issue the following command…
chsh -s /bin/bash
That will change the default shell to bash and the prompt will change as per your configuration.
Just for information my root PS1 is…
PS1=’\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ‘