Created
February 25, 2014 21:31
-
-
Save jsatk/9218282 to your computer and use it in GitHub Desktop.
Fixes OS X's 'Open With…' dialogue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For Bash Shell | |
# Fix the shitty OS X Open With menu duplicates | |
function fixopenwith() { | |
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user | |
killall Finder | |
echo 'Open With has been rebuilt, Finder will relaunch' | |
} | |
# For Fish Shell http://fishshell.com | |
function fixopenwith --description 'Fix the shitty OS X Open With menu duplicates' | |
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user | |
killall Finder | |
echo 'Open With has been rebuilt, Finder will relaunch' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment