Only source guix profile if guix home exists

This commit is contained in:
Leonora Tindall 2024-10-07 07:35:51 -05:00
parent 5dec23d973
commit 2a9c4e0f23
1 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@
initExtra = ''
. "$HOME/.cargo/env"
export GUIX_PROFILE="/home/nora/.config/guix/current"
if [[ -f "$GUIX_PROFILE/etc/profile" ]]; then
. "$GUIX_PROFILE/etc/profile"
export PATH="$HOME/.bin:$HOME/.local/bin:$PATH"
fi
fortune
'';
};