Skip to content

Instantly share code, notes, and snippets.

@skylock
Last active May 13, 2021 08:28
Show Gist options
  • Save skylock/4fffb5d81338c068cd2ea89b021a78ac to your computer and use it in GitHub Desktop.
Save skylock/4fffb5d81338c068cd2ea89b021a78ac to your computer and use it in GitHub Desktop.
OSX commands

Search and delete file by type recursively

find /path . -name '*.js' -type f -delete

Reset Open With context menu database

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user killall Finder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment