[ZSH] Load GUIX profile only if its available

This commit is contained in:
Marcel Kapfer 2021-09-16 21:53:50 +02:00
parent 383d64558e
commit b98ebda7d1
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -147,6 +147,16 @@ export GOPATH=$HOME/projects/go
GUIX_PROFILE="$HOME/.guix-profile/" GUIX_PROFILE="$HOME/.guix-profile/"
GUIX_LOCPATH="$GUIX_PROFILE/lib/locale/" GUIX_LOCPATH="$GUIX_PROFILE/lib/locale/"
if [[ -d $GUIX_PROFILE ]];
then
. "$GUIX_PROFILE/etc/profile" . "$GUIX_PROFILE/etc/profile"
fi
GUIX_PROFILE="$HOME/.config/guix/current" GUIX_PROFILE="$HOME/.config/guix/current"
if [[ -d $GUIX_PROFILE ]];
then
. "$GUIX_PROFILE/etc/profile" . "$GUIX_PROFILE/etc/profile"
fi