OK, I haven’t tested for that loadup yet, and the .bashrc is indeed there. I thought .bashrc was loaded first, then .bash_profile. This is for normal user.
Just tested it again, and /root/.bash_profile is not loading. Tried this in /root/.bashrc:
source /root/.bash_profile
That created a loop, because that reverse instruction is inside /root/.bash_profile
So for some reason, entering su isn’t loading its own .bash_profile nor keeping my user’s .bash_profile (expected).
Any ideas?
On May 13, 2019, at 8:49 AM, ja ja@jaa.org.uk wrote:
I have an alias in /root/.bashrc alias sbp='source ~/.bash_profile'
Cheers, Bee