Rebuild "Open With" Menu on OS X
I often find the “Open With” menu on OS X gets cluttered with old apps and duplicates of existing apps like Sublime Text. This command will rebuild the menu items.
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;