From a268436f68b4e7a72012c9fbb1e0bb2eb272d8ae Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 8 Nov 2023 20:56:42 +0100 Subject: [PATCH] test -f is not enough --- home/fish/tide/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/fish/tide/default.nix b/home/fish/tide/default.nix index 1b74bb0..2ac4b4c 100644 --- a/home/fish/tide/default.nix +++ b/home/fish/tide/default.nix @@ -54,7 +54,7 @@ in functions = tideItems ({ nix_shell = '' # In a Nix Shell - if test -f $DIRENV_FILE && rg -q "^use flake" $DIRENV_FILE + if set -qx DIRENV_FILE && test -f $DIRENV_FILE && rg -q "^use flake" $DIRENV_FILE set -U tide_nix_shell_color "FFA500" set -U tide_nix_shell_bg_color normal _tide_print_item nix_shell "❄"