From fd4d6bfd65a4398be5efdc76a5aef32111020d46 Mon Sep 17 00:00:00 2001 From: imterah Date: Sat, 28 Dec 2024 15:41:05 -0500 Subject: [PATCH] fix: Fixes rare errors regarding Nix shell not finding the initialization script. --- shell.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index e8f1a3b..17c5989 100644 --- a/shell.nix +++ b/shell.nix @@ -9,6 +9,8 @@ ]; shellHook = '' - source init.sh + if [ -f init.sh ]; then + source init.sh + fi ''; }