I am trying to set my shell prompt by inserting the following line into .bashrc in my home directory:
export PS1="\[\e[01;36m\][\u]\[\e[0m\] \[\e[01;37m\]\W\[\e[0m\] $ "
I save this file and re-open bash, but it doesn't change. When I issue the command echo $PS1, the console shows
\h:\w$
which is the default prompt. I looked around .bashrc and do not see the PS1 environment variable being set anywhere except the line that I inserted shown above.
This works on my local machine, but with my account on a remote server it won't stick. How do I make the custom prompt go into effect?
Thanks!
echo $SHELL. – ssmy Mar 10 at 22:34echo $SHELLreturns/bin/bash– Evan W Mar 10 at 22:35