PS1 on nix-shell

I use this one in the shellHook of shell.nix for example:
shellHook = "export PS1='\n\[\033[1;34m\][${name}:\w]\$\[\033[0m\]' "
It changes the prompt color and also shows the name of the derivation to indicate where I am.

1 Like