From 529a55c96c1fbd8a3fad66b4e409e422cd1ed87a Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Sat, 31 Aug 2024 18:29:27 -0500 Subject: [PATCH] More robust ZSH config --- zsh.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zsh.nix b/zsh.nix index ab3744e..db20543 100644 --- a/zsh.nix +++ b/zsh.nix @@ -10,7 +10,12 @@ enableCompletion = true; enableVteIntegration = true; initExtra = '' - . "$HOME/.cargo/env" + # load Cargo + if [ -f "$HOME/.cargo/env ]; then + . "$HOME/.cargo/env" + fi + + # load Guix export GUIX_PROFILE="/home/nora/.config/guix/current" if [[ -f "$GUIX_PROFILE/etc/profile" ]]; then . "$GUIX_PROFILE/etc/profile"