nix: Safer shellHook
All checks were successful
Deploy / deploy (push) Successful in 1m28s

Check if starship is installed before invoking. (It should be, but let's
be careful.)
This commit is contained in:
2026-07-04 12:39:44 -04:00
parent 2063fffa29
commit b868d3d2ec

View File

@@ -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)"
'';
}