nix-shell defaults to bash not zsh, allow customization

This commit is contained in:
Rowan S-L 2024-02-07 17:10:58 -05:00
parent 07022e2977
commit 276a679393
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@
] ++ nativeBuildInputs;
RUST_SRC_PATH = "${rustToolchain}/lib/rustlib/src/rust/library";
shellHook = ''
exec zsh
if [ -n "$\{EXEC_THIS_SHELL}" ]; then
exec $EXEC_THIS_SHELL
fi
'';
};
}