From 71c73d5806bedf8abbb7c87afccee8a4a8888a86 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 8 Aug 2025 13:25:51 +0200 Subject: [PATCH] Add Deno to the path only if the directory exists --- conf.d/deno.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf.d/deno.fish b/conf.d/deno.fish index 5a17c87..e378b86 100644 --- a/conf.d/deno.fish +++ b/conf.d/deno.fish @@ -1,2 +1,4 @@ -set -gx DENO_INSTALL "$HOME/.deno" -fish_add_path $DENO_INSTALL/bin +if test -d $HOME/.deno + set -gx DENO_INSTALL "$HOME/.deno" + fish_add_path $DENO_INSTALL/bin +end