Clean up nix hints from the old insstaller

This commit is contained in:
Graham Christensen 2017-07-12 20:29:58 -04:00
parent 61ea9e9867
commit 92ca93528f
No known key found for this signature in database
GPG key ID: 06121D366FE9435C

View file

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