From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Eliminate environment variable hints? Date: Wed, 06 Mar 2019 14:25:04 +0100 Message-ID: <87lg1suocv.fsf@elephly.net> References: <87a7iswyki.fsf@elephly.net> <87h8cinw1m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1WY0-0003fy-MA for guix-devel@gnu.org; Wed, 06 Mar 2019 08:25:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1WXy-0003si-RR for guix-devel@gnu.org; Wed, 06 Mar 2019 08:25:24 -0500 In-reply-to: <87h8cinw1m.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > When (re)sourcing etc/profile, you might clutter some variables. For > instance, if you do that several times, you can end up with: > > PATH=3D$HOME/.guix-profile/bin:$HOME/.guix-profile/bin:$HOME/.guix-prof= ile/bin:=E2=80=A6 > > Conversely, the hint upon installation disappears if the entry is > already present in the variable. > > That=E2=80=99s a fine point but I occasionally rely on this as a user. Ah, I see. > That said, I understand your concern. What about changing the message > to: > > You might need to run: > > . =E2=80=A6/etc/profile > > Alternately, you can define the following environment variables: > > =E2=80=A6 > > Too verbose? Confusing? I think it=E2=80=99s pretty verbose, but I think it would be good to have =E2=80=9Csource =E2=80=A6/etc/profile=E2=80=9D appear at the *end* of the m= essage. (Guix generally produces a lot of output and in my experience people at the MDC have learned to not read it=E2=80=A6 :-/) If the last few lines give the most reliable hint (using =E2=80=9Csource=E2= =80=9D) I think that would be most helpful. -- Ricardo