Only source guix profile if guix home exists
This commit is contained in:
parent
5dec23d973
commit
2a9c4e0f23
5
zsh.nix
5
zsh.nix
|
@ -12,8 +12,9 @@
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
export GUIX_PROFILE="/home/nora/.config/guix/current"
|
export GUIX_PROFILE="/home/nora/.config/guix/current"
|
||||||
. "$GUIX_PROFILE/etc/profile"
|
if [[ -f "$GUIX_PROFILE/etc/profile" ]]; then
|
||||||
export PATH="$HOME/.bin:$HOME/.local/bin:$PATH"
|
. "$GUIX_PROFILE/etc/profile"
|
||||||
|
fi
|
||||||
fortune
|
fortune
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue