Skip to content

Instantly share code, notes, and snippets.

@sergiks
Created February 13, 2018 20:52
Show Gist options
  • Save sergiks/b539d40fdbb12fdce38e20796259e564 to your computer and use it in GitHub Desktop.
Save sergiks/b539d40fdbb12fdce38e20796259e564 to your computer and use it in GitHub Desktop.
OS X reset of file associations with apps used to open them
# Source: https://superuser.com/questions/640730/mac-os-x-file-associations-keep-changing-though-reverting-it-manually
# Delete LaunchServices prefs:
rm ~/Library/Preferences/com.apple.LaunchServices.plist
# Rebuild the Launch Services database with
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -domain local -domain system -domain user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment