I'm using this in my .profile to switch to bash on login:
case $- in
*i*)
# Interactive session. Try switching to bash.
if [ -z "$BASH" ]; then # do nothing if running under bash already
bash=$(command -v bash)
if [ -x "$bash" ]; then
export SHELL="$bash"
exec "$bash -l"
fi
fi
esac
Is there a way to get the following to execute automatically after the bash shell opens?
PS1='\[\e[1;91m\][\u@\h \w]\$\[\e[0m\] '
I put the line in a .bash_profile but it does not change the prompt.