Skip to content

Instantly share code, notes, and snippets.

@aculich
Last active August 29, 2015 14:07
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 aculich/ebf1d6647429b88f3071 to your computer and use it in GitHub Desktop.
Save aculich/ebf1d6647429b88f3071 to your computer and use it in GitHub Desktop.
# List of all downloaded files from system's Quarantine Manager sqlite db
echo "select LSQuarantineAgentName from LSQuarantineEvent where LSQuarantineAgentName not like 'Google Chrome%';" | sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2
# Set default mail app to GMail through command line without going through Mail.app setup process
defaults write com.apple.LaunchServices.plist LSHandlers -array-add '{LSHandlerRoleAll=com.google.gmailnotifier;LSHandlerURLScheme=mailto;}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment