[Top][All Lists]

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

Re: Using --search-paths with multiple profiles

From: Dmitry Alexandrov
Subject: Re: Using --search-paths with multiple profiles
Date: Tue, 04 Aug 2020 20:01:57 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

hot12shots <> wrote:
>     guix package --search-paths=prefix \
>                  -p /run/current-system/profile  \
>                  -p ~/.config/guix/current       \
>                  -p ~/.guix-profile              \
>                  -p $GUIX_EXTRA_PROFILES/abc/abc \
>                  -p $GUIX_EXTRA_PROFILES/xyz/zyz
>                  # etc.
> This properly sets the manpath etc., as the consuming packages (man-db and 
> friends) are present in the included "built-in" profiles (first 3 `-p` 
> arguments listed above).

Ha!  Nice trick, thanks.  Alas, it won╩╝t help much on top of foreign 
distribution, where they often are not.

> The only caveat I'm aware of is that the multiple `guix` invocations aren't 
> instantaneous, so one might not want to use this if sourcing their .profile 
> from .bashrc or equivalent, as it would add some init time to every shell 
> invocation.

But one should never source profiles from ~/.bashrc in any case!  They are 
supposed to sourced by login shell only.  In other words, there is ~/.profile 
(or ~/.bash_profile) for that.

Attachment: signature.asc
Description: PGP signature

reply via email to

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