Shell prompt for 'nix develop'

I’m new to Nix and I’m learning the experimental CLI. I’ve been told the new pattern for creating development environments is to use the shell resulting from ‘nix develop’.

It looks like this forces me to use a bash shell, with a prompt defined in nix.conf (nix.conf - Nix Reference Manual).

Is there any way to use a different shell? Or to configure the shell with a .bashrc? I’m currently using zsh and enjoy my custom prompt.

If not, is there another pattern for starting a development environment that might suit me better?

1 Like

I use GitHub - nix-community/nix-direnv: A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10] for that, it integrates well with ZSH.

1 Like

@manveru does it change the prompt for you?

i can not visually distinguish from a devshell and my normal zsh prompt…