Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@smockle
Created August 24, 2015 17:18
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 smockle/f4084094db2a2298cf05 to your computer and use it in GitHub Desktop.
Save smockle/f4084094db2a2298cf05 to your computer and use it in GitHub Desktop.
Reset Finder, the Dock, the Open With menu and the clipboard in OS X.
#!/usr/bin/env bash
killall Finder
killall Dock
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
launchctl stop com.apple.pboard
launchctl start com.apple.pboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment