forked from lix-project/lix
Fix #1380
It lacked a backslash. Use a raw string and single quotes around PS1 to simplify this.
This commit is contained in:
parent
01200d07d2
commit
9711524188
|
@ -438,7 +438,7 @@ int main(int argc, char ** argv)
|
||||||
"[ -e $stdenv/setup ] && source $stdenv/setup; "
|
"[ -e $stdenv/setup ] && source $stdenv/setup; "
|
||||||
"%3%"
|
"%3%"
|
||||||
"set +e; "
|
"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; "
|
"if [ \"$(type -t runHook)\" = function ]; then runHook shellHook; fi; "
|
||||||
"unset NIX_ENFORCE_PURITY; "
|
"unset NIX_ENFORCE_PURITY; "
|
||||||
"unset NIX_INDENT_MAKE; "
|
"unset NIX_INDENT_MAKE; "
|
||||||
|
|
Loading…
Reference in a new issue