From dfaa6786be58daad4392fa6cb4fba769315bbeb1 Mon Sep 17 00:00:00 2001 From: David Mosbach Date: Mon, 14 Aug 2023 00:24:47 +0200 Subject: [PATCH] only switch to zsh if available --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d6dee37..8b47e0d 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,9 @@ devShell = { enable = true; mkShellArgs.shellHook = '' - zsh && exit + if command -v zsh &> /dev/null; then + zsh && exit + fi ''; # Programs you want to make available in the shell.