System Preferences
This episode is part of a series: Setting up a New Mac for Development.
1. System Preferences 9 min |
2. Setting Up the Terminal 6 min |
3. Setting Up Dotfiles 7 min |
4. Setting Up iTerm Keyboard Behavior 3 min |
5. Setting Up Git and SSH 8 min |
6. Setting Up a Ruby Development Environment 7 min |
7. Setting up Xcode 4 min |
8. Migrating to ZSH 33 min |
Want more? Subscribers can view all 485 episodes. New episodes are released regularly.
Episode Links
- Alfred - An indispensable tool for launching programs, searching for definitions, contacts, and files, playing music, and managing the pasteboard. This is the first thing I install on a new Mac.
Adjusting Keyboard Repeat Rate
We can adjust the keybaord repeat rate beyond what the preference pane allows. To do this, open terminal and type:
$ defaults write -g InitialKeyRepeat -int 15
$ defaults write -g KeyRepeat -int 2
You can adjust the numbers to be whatever you want the delay to be (in milliseconds).
You'll have to log out and log back in for these settings to take effect.
Disable Press and Hold
This setting, which allows pressing on a key to get a context menu of other related characters to type, often gets in the way of how I use vim and the terminal. To disable it:
$ defaults write -g ApplePressAndHoldEnabled -bool false
Set the hostname
Setting the hostname in System Preferences often doesn't affect what you see in the terminal. To fix this permanently, we can use scutil
:
sudo scutil --set HostName <yourcomputername>
sudo scutil --set LocalHostName <yourcomputername>
sudo scutil --set ComputerName <yourcomputername>
That should set all the various names and survive reboots, etc.