From mboxrd@z Thu Jan  1 00:00:00 1970
From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: Re: "The following environment variable definitions may be needed"
Date: Wed, 10 May 2017 14:01:20 +0200
Message-ID: <87shkcvs33.fsf@gnu.org>
References: <87lgq5p8al.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Return-path: <help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44858)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1d8QJ7-0002yJ-Dd
	for help-guix@gnu.org; Wed, 10 May 2017 08:01:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1d8QJ1-0005i7-P4
	for help-guix@gnu.org; Wed, 10 May 2017 08:01:29 -0400
In-Reply-To: <87lgq5p8al.fsf@gmail.com> (Chris Marusich's message of "Tue, 09
	May 2017 22:53:06 -0700")
List-Id: <help-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>,
	<mailto:help-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-guix/>
List-Post: <mailto:help-guix@gnu.org>
List-Help: <mailto:help-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>,
	<mailto:help-guix-request@gnu.org?subject=subscribe>
Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org
Sender: "Help-Guix" <help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: help-guix@gnu.org

Hi!

Chris Marusich <cmmarusich@gmail.com> 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?

No.

> 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.

Confirmed!

I think the recommendations that =E2=80=98guix package=E2=80=99 produces ar=
e still
useful though, precisely because $GUIX_PROFILE/etc/profile won=E2=80=99t 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 =E2=80=98guix
package=E2=80=99 is run.  :-)

Ludo=E2=80=99.