cannot customize terminal PATH anywhere
Chris Green
cl at isbd.net
Fri Aug 24 12:22:09 CEST 2018
On Thu, Aug 23, 2018 at 09:48:07PM -0700, MR ZenWiz wrote:
> On Thu, Aug 23, 2018 at 4:24 AM Chris Green <cl at isbd.net> wrote:
> >
> > Quite true, but why make things difficult for yourself, adding to PATH
> > in .profile (or .bash_profile, or .bash_login) works in just about
> > every normal setup and adds what you want just once.
> >
> Except that bash also always reads .bashrc, whereas .profile is
> typically only read when you open an interactive session.
>
> Hence .bashrc is the correct and most effective place to make changes
> for all your bash instances.
>
No, if you want something done *once*, like adding something to PATH
then .profile is the right place. PATH is exported so *all*
subsequent bash instances will get the chnaged PATH.
--
Chris Green
More information about the Xfce
mailing list