Skip to content

Instantly share code, notes, and snippets.

@rickychilcott
Created May 18, 2012 16:35
Show Gist options
  • Save rickychilcott/2726267 to your computer and use it in GitHub Desktop.
Save rickychilcott/2726267 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "#!/bin/bash" > /tmp/loginfix.sh
echo "rm /Users/*/Library/Preferences/ByHost/com.apple.loginwindow.*" >> /tmp/loginfix.sh
mv /tmp/loginfix.sh /usr/bin/loginfix.sh
chmod +x /usr/bin/loginfix.sh
defaults write com.apple.loginwindow LoginHook /usr/bin/loginfix.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment