GNU bug report logs -
#20255
'search-paths' should respect both user and system profile.
Previous Next
Full log
Message #32 received at 20255 <at> debbugs.gnu.org (full text, mbox):
宋文武 <iyzsong <at> gmail.com> skribis:
> How about using a shell variable as input for the location:
> (replace /gnu/store/xxx with $GUIX_PROFILE)
>
> # etc/profile
> export PATH=$GUIX_PROFILE/bin:$PATH
> export MANPATH=$GUIX_PROFILE/share/man:$MANPATH
> ...
>
> Then when 'source' it, we pass the location:
> (we did know where $GUIX_PROFILE is when do the 'source')
>
> # ~/.bash_profile
> GUIX_PROFILE=$HOME/.guix-profile
> if [ -f $GUIX_PROFILE/etc/profile ]; then
> . $GUIX_PROFILE/etc/profile
> fi
>
> # /etc/profile
> GUIX_PROFILE=/run/current-system/profile
> source $GUIX_PROFILE/etc/profile
Yes, but we would also like users to be able to source
~/.guix-profile/etc/profile themselves directly, and it wouldn’t be nice
to ask them to set GUIX_PROFILE before sourcing it.
Ludo’.
This bug report was last modified 2 years and 27 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.