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

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; ' ) .