[ZSH] Load GUIX profile only if its available
This commit is contained in:
parent
383d64558e
commit
b98ebda7d1
1 changed files with 12 additions and 2 deletions
10
shells/zshrc
10
shells/zshrc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue