help-guix
[Top][All Lists]
Advanced

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

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


From: Niall Dooley
Subject: Re: "The following environment variable definitions may be needed"
Date: Thu, 11 May 2017 20:55:28 +0100

It certainly does. I hadn't fully appreciated the subtle differences between
these dotfiles and when they are sourced. Thanks a lot Ludo.
Niall


On 11 May 2017 at 09:55, Ludovic Courtès <address@hidden> wrote:
> Niall Dooley <address@hidden> skribis:
>
>> This too has confused me so perhaps an update of the manual is in order. Like
>> others I too followed the instructions in the manual
>> (https://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-package)
>> and have the following
>> in my .bashrc (my system (a foreign distro - Trisquel 7) doesn't have a
>> .bash_profile but only a .profile which sources .bashrc):
>
> You should source ~/.guix-profile/etc/profile from .profile or
> .bash_profile, not .bashrc, so that it is sourced only once when you log
> in.
>
> If you source it from .bashrc, it ends up being sourced every time you
> spawn a new shell, leading to duplicate entries in PATH,
> GUILE_LOAD_PATH, etc.
>
> HTH!
>
> Ludo’.



reply via email to

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