should ~/.bashrc run in an ssh session?
I thought my ~/.bashrc script should be executed when I ssh to a shared Centos system.
I tested and determined that it is not. Is something configured wrong in that Centos system, that I should ask our IT person to correct? Or is it normal for ssh to start a bash session without using ~/.bashrc? If it is normal for ~/.bashrc to not be executed, is there a better place I should put the commands that I want executed each time I log in via ssh? |
~/.bash_profile gets executed and it usually contains the setup to source ~/.bashrc if it exists. Something like:
Code:
# Get the aliases and functions |
Quote:
|
Solved: I had not understood the relationship between .bashrc and .bash_profile and I did not have a .bash_profile file.
Once I knew (from MensaWater's post) what to google search for, it was easy to find the relationship between the two and decide that for simple situations, like I have, my .bash_profile file should exist and should source .bashrc Now it all works. |
Quote:
|
All times are GMT -5. The time now is 10:06 AM. |