[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
1 changed files with 12 additions and 2 deletions

View File

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