Created
November 27, 2024 14:05
-
-
Save tlux/1fb1c811f440fcc7e4d06d92e63fd627 to your computer and use it in GitHub Desktop.
Fix Nix after Mac OS update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -r -d '' INJECT << EOM | |
# Nix | |
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then | |
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' | |
fi | |
# End Nix | |
EOM | |
echo "$INJECT" >> /etc/zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment