Is it possible to have .bashrc outside home directory?
Posted
by
FSchmidt
on Ask Ubuntu
See other posts from Ask Ubuntu
or by FSchmidt
Published on 2012-03-30T04:25:04Z
Indexed on
2012/03/30
5:42 UTC
Read the original article
Hit count: 243
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?)
© Ask Ubuntu or respective owner