Don't set $PS1 in non-interactive shells
Shouldn't really matter, but you never know.
This commit is contained in:
		
							parent
							
								
									4ea034a5c5
								
							
						
					
					
						commit
						4f4a14453a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -209,7 +209,7 @@ foreach my $expr (@exprs) {
 | 
				
			||||||
            '[ -e $stdenv/setup ] && source $stdenv/setup; ' .
 | 
					            '[ -e $stdenv/setup ] && source $stdenv/setup; ' .
 | 
				
			||||||
            ($pure ? '' : 'PATH=$PATH:$p; ') .
 | 
					            ($pure ? '' : 'PATH=$PATH:$p; ') .
 | 
				
			||||||
            'set +e; ' .
 | 
					            '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; ' .
 | 
					            'unset NIX_ENFORCE_PURITY; ' .
 | 
				
			||||||
            'shopt -u nullglob; ' .
 | 
					            'shopt -u nullglob; ' .
 | 
				
			||||||
            $envCommand);
 | 
					            $envCommand);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue