I'm trying to change a few things in my profile for bash. I've been told that the following files affect everyone...
/etc/bashrc
/etc/profile
I've also been told that the following files are run out of each individual's home directory and that they have an affect on only that individual...
~/.bashrc
~/.bash_profile
~/.bash_login
Now, I wanted to change my prompt initally, but there are other things I want to do in the future. I wasn't even able to change the prompt, though. I added the following lines to my ~/.bashrc file first...
PROMPT="[\u | "'$PWD'"] "
export PROMPT
This didn't do the trick. Therefore, I assumed that the ~/.bashrc file was not being called. I was told that it was called from the ~/.bash_profile file via the $BASH_ENV variable. So, I added the following lines to my ~/.bash_profile file...
BASH_ENV="$HOME/.bashrc"
export BASH_ENV
This still doesn't work. In fact, no changes I make to any of the bash-related files in my home directory seem to make a difference. I looked through the files in /etc that I listed above and none of them appear to actually set the $PROMPT variable. They use it in some conditionals, but never actually set it that I see.
What am I missing here? Is there another file or two that I don't know about or is the hierarchy different than I was told or what?
