[Top][All Lists]

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

Re: "The following environment variable definitions may be needed"

From: Ludovic Courtès
Subject: Re: "The following environment variable definitions may be needed"
Date: Wed, 10 May 2017 14:01:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)


Chris Marusich <address@hidden> skribis:

> This leads to my question: If I'm using GuixSD (or a foreign distro in
> which $GUIX_PROFILE/etc/profile is automatically sourced), do I need to
> add these recommended export statements to my ~/.bashrc or
> ~/.bash_profile?


> My suspicion is that the answer is "no".  The next time I reboot or log
> out and back in, the environment variables will be set correctly even if
> I don't add them to my ~/.bashrc or ~/.bash_profile.  In fact, by adding
> them there, I would be adding redundant entries.  I am hoping that
> someone can confirm that my understanding is correct.


I think the recommendations that ‘guix package’ produces are still
useful though, precisely because $GUIX_PROFILE/etc/profile won’t be
re-sourced until you log in again.

Exercise for the reader: extend Bash with Guile-Bash such that the new
environment variable settings are automatically effected when ‘guix
package’ is run.  :-)


reply via email to

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