-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathosx
More file actions
executable file
·53 lines (46 loc) · 1.98 KB
/
osx
File metadata and controls
executable file
·53 lines (46 loc) · 1.98 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# macOS defaults
# Keyboard
echo "Re-enable key repeat"
defaults write -g ApplePressAndHoldEnabled -bool false
echo "Set a blazingly fast keyboard repeat rate"
defaults write -g KeyRepeat -int 1
echo "Set a shorter delay until key repeat"
defaults write -g InitialKeyRepeat -int 10
echo "Disable auto-correct"
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
# Trackpad
echo "Enable tap to click"
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
echo "Enable two-finger tap for right-click"
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
defaults write com.apple.AppleMultitouchTrackpad TrackpadRightClick -bool true
defaults write -currentHost -g com.apple.trackpad.enableSecondaryClick -bool true
# Finder
echo "Show all filename extensions"
defaults write -g AppleShowAllExtensions -bool true
echo "Show the ~/Library folder"
chflags nohidden ~/Library
echo "Disable the warning when changing a file extension"
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
echo "Use current directory as default search scope"
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
echo "Show Path bar"
defaults write com.apple.finder ShowPathbar -bool true
echo "Show Status bar"
defaults write com.apple.finder ShowStatusBar -bool true
#echo "Show hidden files"
#defaults write com.apple.finder AppleShowAllFiles -bool true
# Dock & UI
echo "Auto-hide the Dock"
defaults write com.apple.dock autohide -bool true
echo "Hide scroll bars unless scrolling"
defaults write -g AppleShowScrollBars -string "WhenScrolling"
# Screen saver
echo "Require password immediately after sleep or screen saver"
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Apply changes
killall Finder
killall Dock
echo "Reminder: Map Caps Lock to Control in System Settings > Keyboard > Keyboard Shortcuts > Modifier Keys"