Skip to content
Snippets Groups Projects
Commit 4f4a1445 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

Don't set $PS1 in non-interactive shells

Shouldn't really matter, but you never know.
parent 4ea034a5
No related branches found
No related tags found
No related merge requests found
......@@ -209,7 +209,7 @@ foreach my $expr (@exprs) {
'[ -e $stdenv/setup ] && source $stdenv/setup; ' .
($pure ? '' : 'PATH=$PATH:$p; ') .
'set +e; ' .
'PS1="\n\[\033[1;32m\][nix-shell:\w]$\[\033[0m\] "; ' .
'[ -n "$PS1" ] && PS1="\n\[\033[1;32m\][nix-shell:\w]$\[\033[0m\] "; ' .
'unset NIX_ENFORCE_PURITY; ' .
'shopt -u nullglob; ' .
$envCommand);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment