Artificial intelligent assistant

How to keep PS1 when using nix-shell? `nix-shell` changes PS1 to its own format. [nix-shell:~/snm]$ I tried adding check for "$IN_NIX_SHELL" inside ~/.bashrc, but it didn't work. The only work around I found is to run nix-shell --run bash

Since Nix 2.4 [1] there is NIX_SHELL_PRESERVE_PROMPT environment variable which makes `nix-shell` preserve original `PS1`. It can be added by


home.sessionVariables = {
NIX_SHELL_PRESERVE_PROMPT=1;
};


1: <

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy dec7945e7f09bfe95e728d1b06cd3fd3