My .bash_profile
has different styles of prompt for regular user and root but in order it to work the .bash_profile
should be reloaded every time I switch users. How can I achieve this?
Can I make the command . ~/.bash_profile
to be executed every time I execute su
command in order to change the prompt look for root?