only switch to zsh if available

This commit is contained in:
David Mosbach 2023-08-14 00:24:47 +02:00
parent b4e23cecd4
commit dfaa6786be

View File

@ -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.