From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Frumin Subject: Re: Eliminate environment variable hints? Date: Wed, 6 Mar 2019 14:48:43 +0100 Message-ID: References: <87a7iswyki.fsf@elephly.net> <87h8cinw1m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:39411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Wug-0006eU-8Y for guix-devel@gnu.org; Wed, 06 Mar 2019 08:48:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1Wuf-0000XR-6L for guix-devel@gnu.org; Wed, 06 Mar 2019 08:48:50 -0500 Received: from smtp2.science.ru.nl ([131.174.16.145]:44004) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1Wud-0000UL-92 for guix-devel@gnu.org; Wed, 06 Mar 2019 08:48:47 -0500 Received: from [131.174.142.220] (n142220.science.ru.nl [131.174.142.220]) (authen=dfrumin) by smtp2.science.ru.nl (8.14.4/5.32) with ESMTP id x26DmhjF004875 for ; Wed, 6 Mar 2019 14:48:44 +0100 In-Reply-To: <87h8cinw1m.fsf@gnu.org> Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi, I just wanted to add that I use an interactive shell with a different syn= tax (fish), so I cannot just source a bsh script from my shell rc (AFAIK). To that ex= tent having Guix print the exact variables I should be setting is actuall= y=20 quite useful. Best, Dan On 04-03-19 22:56, Ludovic Court=C3=A8s wrote: > Hello, >=20 > Ricardo Wurmus skribis: >=20 >> when installing a package into a profile Guix very helpfully tells you >> that you may need to set certain environment variables. It doesn=E2=80= =99t tell >> you that these environment variables can also be set by source=E2=80=99= ing the >> generated etc/profile file. >> >> I have seen the bashrc and bash_profile files of many users and they a= re >> usually full of conflicting environment variable definitions. In thes= e >> 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 woul= d >> be less noisy and less confusing, in my opinion. >> >> What do you think? >=20 > When (re)sourcing etc/profile, you might clutter some variables. For > instance, if you do that several times, you can end up with: >=20 > PATH=3D$HOME/.guix-profile/bin:$HOME/.guix-profile/bin:$HOME/.guix-p= rofile/bin:=E2=80=A6 >=20 > Conversely, the hint upon installation disappears if the entry is > already present in the variable. >=20 > That=E2=80=99s a fine point but I occasionally rely on this as a user. >=20 > That said, I understand your concern. What about changing the message > to: >=20 > You might need to run: >=20 > . =E2=80=A6/etc/profile >=20 > Alternately, you can define the following environment variables: >=20 > =E2=80=A6 >=20 > Too verbose? Confusing? >=20 > Thanks, > Ludo=E2=80=99. >=20