Created
December 11, 2009 12:10
-
-
Save ssp/254172 to your computer and use it in GitHub Desktop.
find keyboard equivalents in application preference files
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
#!/bin/sh | |
defaults find NSUserKeyEquivalents | grep Found | sed "s/.*domain .\(.*\).:.*/'\1'/g" | tr "\n" "," | sed "s/\(.*\),/(\1)/g" | sed "s/Apple Global Domain/NSGlobalDomain/g" | xargs -t -J appnames defaults write com.apple.universalaccess com.apple.custommenu.apps appnames | |
# If Mac OS X's keyboard preference pane forgot your custom keyboard equivalents, this may be able to restore them | |
# see http://earthlingsoft.net/ssp/blog/2009/07/keyboard_equivalents |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment