nix-shell: Don't leave a temporary directory in /tmp behind

This commit is contained in:
Eelco Dolstra 2014-02-19 15:01:04 +01:00
parent a7e70518b8
commit 73f74ebba0
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ foreach my $expr (@exprs) {
my $rcfile = "$tmpDir/rc";
writeFile(
$rcfile,
"rm -rf '$tmpDir'; " .
'unset BASH_ENV; ' .
'[ -n "$PS1" ] && [ -e ~/.bashrc ] && source ~/.bashrc; ' .
($pure ? '' : 'p=$PATH; ' ) .