Skip to content

Instantly share code, notes, and snippets.

@gjpalau
Created February 11, 2015 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjpalau/56f3613904c0454d7a45 to your computer and use it in GitHub Desktop.
Save gjpalau/56f3613904c0454d7a45 to your computer and use it in GitHub Desktop.
login and log out hooks
sudo defaults write com.apple.loginwindow LoginHook /location/of/the/script.sh
sudo defaults write com.apple.loginwindow LogoutHook /Library/ETS/macrenamer.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment