cannot customize terminal PATH anywhere
Chris Green
cl at isbd.net
Thu Aug 23 13:07:18 CEST 2018
On Wed, Aug 22, 2018 at 02:41:09PM -0700, MR ZenWiz wrote:
> On Wed, Aug 22, 2018 at 2:30 PM Chris Green <cl at isbd.net> wrote:
> >
> > If you add to the path in .bashrc then the addition may get added more
> > than once, not a serious problem but is a bit 'messy'.
> >
>
> There are numerous ways to clean up any list and purge the duplicates
> while preserving the order of the unique entries. The PATH is just a
> colon-separated list of path strings.
>
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.
> It is also easy enough to check the PATH to see if it already contains
> the path you want to add and skip that one.
>
Yes, but do you really want to check it every time, computers are good
at automating things you know! :-)
--
Chris Green
More information about the Xfce
mailing list