Is it possible to have .bashrc outside home directory?
- by FSchmidt
I want to put a .bashrc file in a directory where my application is located, to set up path variables accordingly independent of the location of the directory at the moment.
At the same time, I want to be able to run the application right away, without having to source a shell file to set the path every time. Therefore I figured I could use .bashrc which is executed when the non-login terminal is started.
If I do put it in the proper .bashrc in the home directory, I would have to give an absolute path which I want to avoid.
Is there a way to have something like .bashrc but not in home directory (ie a shell that is executed when terminal is started?)