From b868d3d2ecfb4046e30d8bc6c047e1ce55ecb1ed Mon Sep 17 00:00:00 2001 From: Drew Malzahn Date: Sat, 4 Jul 2026 12:39:44 -0400 Subject: [PATCH] nix: Safer shellHook Check if starship is installed before invoking. (It should be, but let's be careful.) --- shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 53c863c..ed81c0e 100644 --- a/shell.nix +++ b/shell.nix @@ -10,6 +10,6 @@ pkgs.mkShellNoCC { typescript-language-server ]; shellHook = '' - eval "$(starship init bash)" + which -s starship >/dev/null 2>&1 && eval "$(starship init bash)" ''; }