Last active
August 29, 2015 14:01
-
-
Save rjchatfield/299e667570c53333be62 to your computer and use it in GitHub Desktop.
Simple shell function to speed up the key repeat and key repeat delay. Everyone with a Mac should use this.
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
# Must log out and log back in for settings to take effect | |
# $ keyRepeatRate 1 # for fast | |
# $ keyRepeatRate # for defaults | |
keyRepeatRate() { | |
echo | |
echo "Resetting key repeat settings to default" | |
echo | |
defaults delete NSGlobalDomain KeyRepeat | |
defaults delete NSGlobalDomain InitialKeyRepeat | |
if [ -n "$1" ] | |
then | |
echo | |
echo "Set a blazingly fast keyboard repeat rate, " | |
defaults write NSGlobalDomain KeyRepeat -int 1.8 | |
echo "Set a shorter Delay until key repeat" | |
defaults write NSGlobalDomain InitialKeyRepeat -int 20 | |
fi | |
echo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment