I noticed that you can prevent reading /etc/profile by running
bash --noprofile
However this also stops ~/.bash_profile from being read. Can Bash be invoked in such a way as to read ~/.bash_profile but not /etc/profile?
|
I noticed that you can prevent reading
However this also stops |
|||
|
|
|
Try the options --noprofile and --rcfile file_name where file_name is the config file you want read, e.g:
Well... somebody didn't like this answer, but it appears to be exactly what was desired:
|
||||
|
|
|
You can simply do add in ~/.bashrc file
|
|||
|
|
|
The login shell will always read If you are the only user and this is your system you are free to edit or remove /etc/profile if you wish. |
|||
|