My notes My blog

Use your shell instead of Bash in nix develop

#nix

nix develop --command bash -c "SHELL=$SHELL $SHELL"

This executes your shell, stored in $SHELL, and also sets correct SHELL=$SHELL, so it won’t be equal to bash