Skip to content

Instantly share code, notes, and snippets.

@tlux
Created November 27, 2024 14:05
Show Gist options
  • Save tlux/1fb1c811f440fcc7e4d06d92e63fd627 to your computer and use it in GitHub Desktop.
Save tlux/1fb1c811f440fcc7e4d06d92e63fd627 to your computer and use it in GitHub Desktop.
Fix Nix after Mac OS update
#!/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