Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The instructions for local::lib (using a bash shell) indicate putting the environment variable definitions into my .bashrc file.
However, my understanding is that .bashrc is used for non-login shells (sourced every time you open a new shell), so, the only things that belong in there are things that you want newly set for each shell (for example, maybe aliases, or setting $PS1).
AFAIK, the .profile file (sourced once when logging in) is for environment variables.
Should my local::lib settings go into my ~/.bashrc or ~/.profile?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting up with local::lib : .bashrc or .profile?
by almut (Canon) on Jun 02, 2010 at 18:48 UTC | |
|
Re: Setting up with local::lib : .bashrc or .profile?
by toolic (Bishop) on Jun 02, 2010 at 16:02 UTC | |
|
Re: Setting up with local::lib : .bashrc or .profile?
by scorpio17 (Canon) on Jun 02, 2010 at 17:51 UTC | |
by StommePoes (Scribe) on Jun 03, 2010 at 08:28 UTC | |
|
Re: Setting up with local::lib : .bashrc or .profile?
by Khen1950fx (Canon) on Jun 04, 2010 at 08:32 UTC |