[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eliminate environment variable hints?

From: Ludovic Courtès
Subject: Re: Eliminate environment variable hints?
Date: Mon, 04 Mar 2019 22:56:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)


Ricardo Wurmus <address@hidden> skribis:

> when installing a package into a profile Guix very helpfully tells you
> that you may need to set certain environment variables.  It doesn’t tell
> you that these environment variables can also be set by source’ing the
> generated etc/profile file.
> I have seen the bashrc and bash_profile files of many users and they are
> usually full of conflicting environment variable definitions.  In these
> files I often also see these Guix recommendations.
> I think Guix should suggest sourcing the generated etc/profile file
> instead of listing explicit environment variable definitions.  It would
> be less noisy and less confusing, in my opinion.
> What do you think?

When (re)sourcing etc/profile, you might clutter some variables.  For
instance, if you do that several times, you can end up with:


Conversely, the hint upon installation disappears if the entry is
already present in the variable.

That’s a fine point but I occasionally rely on this as a user.

That said, I understand your concern.  What about changing the message

  You might need to run:

     . …/etc/profile

  Alternately, you can define the following environment variables:


Too verbose?  Confusing?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]