From 8b7c5738f405d68a0d7afbb9c260bbe6b8667dc7 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Mon, 2 Nov 2026 10:34:42 -0500 Subject: [PATCH] Guard rustup and uv env sources when the files are absent --- conf.d/rustup.fish | 4 +++- conf.d/uv.env.fish | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/conf.d/rustup.fish b/conf.d/rustup.fish index e4cb363..057cbe1 100644 --- a/conf.d/rustup.fish +++ b/conf.d/rustup.fish @@ -1 +1,3 @@ -source "$HOME/.cargo/env.fish" +if test -f "$HOME/.cargo/env.fish" + source "$HOME/.cargo/env.fish" +end diff --git a/conf.d/uv.env.fish b/conf.d/uv.env.fish index d97734b..3eb1b33 100644 --- a/conf.d/uv.env.fish +++ b/conf.d/uv.env.fish @@ -1,2 +1,3 @@ - -source "$HOME/.local/share/../bin/env.fish" +if test -f "$HOME/.local/share/../bin/env.fish" + source "$HOME/.local/share/../bin/env.fish" +end