Clean up nix hints from the old insstaller

This commit is contained in:
Graham Christensen 2017-07-12 20:29:58 -04:00
parent a31347d6ec
commit b2917c8246
No known key found for this signature in database
GPG Key ID: 06121D366FE9435C
1 changed files with 7 additions and 3 deletions

View File

@ -19,6 +19,13 @@ cleanup() {
fi
done
for file in ~/.bash_profile ~/.bash_login ~/.profile ~/.zshenv ~/.zprofile ~/.zshrc ~/.zlogin; do
cat "$file" | grep -v nix-profile > "$file.next"
mv "$file.next" "$file"
done
for i in $(seq 1 $(sysctl -n hw.ncpu)); do
sudo /usr/bin/dscl . -delete "/Users/nixbld$i" || true
done
@ -64,9 +71,6 @@ verify
set -eux
cat ~/.profile | grep -v nix-profile > ~/.profile-next
mv ~/.profile-next ~/.profile
cleanup
yes | ./install