-
Notifications
You must be signed in to change notification settings - Fork 2
/
osx.sh
25 lines (19 loc) · 904 Bytes
/
osx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Remove the animation when hiding/showing the Dock
defaults write com.apple.dock autohide-time-modifier -float 0
# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
defaults write com.apple.finder QuitMenuItem -bool true
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Set a fast keyboard repeat rate
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
# use C-w to delete word and C-u to delete to beginning of line
mkdir -p ~/Library/Keybindings/
echo '
{
"^w" = deleteWordBackward:;
"^u" = deleteToBeginningOfLine:;
}
' > ~/Library/Keybindings/DefaultKeyBinding.dict