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: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Chris Marusich Cc: help-guix@gnu.org Hi! Chris Marusich 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.