diff options
author | Trevor Arjeski <tmarjeski@gmail.com> | 2024-05-06 09:00:59 +0300 |
---|---|---|
committer | Guix Patches Tester <> | 2024-05-06 15:34:58 +0200 |
commit | b599ebefde7c167d4eb035df33e99e7bbc9ead8a (patch) | |
tree | 4b7765eab913490ec9335d2ad908622e30fffca0 | |
parent | da9f509b0300f1b6b979c68a52d8669f9bcb89a7 (diff) | |
download | guix-patches-issue-70798.tar guix-patches-issue-70798.tar.gz |
guix-install.sh: add ~/.guix-profile/share/info to INFOPATHissue-70798
Adding ~/.guix-profile/share/info to the INFOPATH env var so that when a user
does `guix install [package]` that package's info pages can be found.
-rwxr-xr-x | etc/guix-install.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 82accfd5d5..4e268a52d6 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -626,11 +626,6 @@ export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" # _GUIX_PROFILE: `guix pull` profile _GUIX_PROFILE="$HOME/.config/guix/current" export PATH="$_GUIX_PROFILE/bin${PATH:+:}$PATH" -# Export INFOPATH so that the updated info pages can be found -# and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info -# When INFOPATH is unset, add a trailing colon so that Emacs -# searches 'Info-default-directory-list'. -export INFOPATH="$_GUIX_PROFILE/share/info:$INFOPATH" # GUIX_PROFILE: User's default profile and home profile GUIX_PROFILE="$HOME/.guix-profile" @@ -638,6 +633,12 @@ GUIX_PROFILE="$HOME/.guix-profile" [ -L "$GUIX_PROFILE" ] && \ GUIX_LOCPATH="$GUIX_PROFILE/lib/locale${GUIX_LOCPATH:+:}$GUIX_LOCPATH" +# Export INFOPATH so that the updated info pages can be found +# and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info +# When INFOPATH is unset, add a trailing colon so that Emacs +# searches 'Info-default-directory-list'. +export INFOPATH="$_GUIX_PROFILE/share/info:$GUIX_PROFILE/share/info:$INFOPATH" + GUIX_PROFILE="$HOME/.guix-home/profile" [ -f "$GUIX_PROFILE/etc/profile" ] && . "$GUIX_PROFILE/etc/profile" [ -L "$GUIX_PROFILE" ] && \ |