It lacked a backslash. Use a raw string and single quotes around PS1
to simplify this.
This commit is contained in:
Eelco Dolstra 2017-05-24 11:21:38 +02:00
parent 01200d07d2
commit 9711524188
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -438,7 +438,7 @@ int main(int argc, char ** argv)
"[ -e $stdenv/setup ] && source $stdenv/setup; "
"%3%"
"set +e; "
"[ -n \"$PS1\" ] && PS1=\"\\n\\[\\033[1;32m\\][nix-shell:\\w]\\$\\[\\033[0m\\] \"; "
R"s([ -n "$PS1" ] && PS1='\n\[\033[1;32m\][nix-shell:\w]\$\[\033[0m\] '; )s"
"if [ \"$(type -t runHook)\" = function ]; then runHook shellHook; fi; "
"unset NIX_ENFORCE_PURITY; "
"unset NIX_INDENT_MAKE; "