-
Notifications
You must be signed in to change notification settings - Fork 0
/
osx.sh
executable file
·39 lines (27 loc) · 1.47 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# Based on 'OS X for hackers'
# https://gist.github.com/2260182
echo "✓ Enable 2D dock"
defaults write com.apple.dock no-glass -bool true
echo "✓ Enable Apple font-smoothing on non-Apple displays"
defaults write NSGlobalDomain AppleFontSmoothing -int 3
echo "✓ Enable tab switching in modal windows and other keyboard navigation perks"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
echo "✓ Enable current directory as the default scope for Finder search"
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
echo "✓ Expand 'Save' panel by default"
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
echo "✓ Expand 'Print' panel by default"
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
echo "✓ Disable shadow in screenshots"
defaults write com.apple.screencapture disable-shadow -bool true
echo "✓ Disable spelling correction"
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
echo "✓ Set a blazingly fast keyboard repeat rate"
defaults write NSGlobalDomain KeyRepeat -int 0.02
echo "✓ Set a shorter Delay until key repeat"
defaults write NSGlobalDomain InitialKeyRepeat -int 12
echo "✓ Enable snap-to-grid for desktop icons"
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
echo "✓ Only use UTF-8 in Terminal.app"
defaults write com.apple.terminal StringEncodings -array 4