[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Eliminate environment variable hints?
From: |
Ricardo Wurmus |
Subject: |
Re: Eliminate environment variable hints? |
Date: |
Wed, 06 Mar 2019 14:25:04 +0100 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Ludovic Courtès <address@hidden> 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=$HOME/.guix-profile/bin:$HOME/.guix-profile/bin:$HOME/.guix-profile/bin:…
>
> Conversely, the hint upon installation disappears if the entry is
> already present in the variable.
>
> That’s 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:
>
> . …/etc/profile
>
> Alternately, you can define the following environment variables:
>
> …
>
> Too verbose? Confusing?
I think it’s pretty verbose, but I think it would be good to have
“source …/etc/profile” appear at the *end* of the message.
(Guix generally produces a lot of output and in my experience people at
the MDC have learned to not read it… :-/)
If the last few lines give the most reliable hint (using “source”) I
think that would be most helpful.
--
Ricardo