-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathosx
executable file
·45 lines (33 loc) · 1.45 KB
/
osx
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
#!/bin/sh
# Ask for sudo and keep it alive
sudo -v
while true; do
sudo -n true
sleep 60
kill -0 "$$" || exit
done 2>/dev/null &
# ------------------------------------------------------------------------------
# Misc
# ------------------------------------------------------------------------------
# Disable Resume system-wide
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
# Enable full keyboard access for all controls
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Disable text auto-correct
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
# Disable text auto-capitalization
defaults write -g NSAutomaticCapitalizationEnabled -bool false
# Disable the "Are you sure you want to open this application?" dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# ------------------------------------------------------------------------------
# Time Machine
# ------------------------------------------------------------------------------
# Don't offer new disks for backup
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
# ------------------------------------------------------------------------------
# Finder
# ------------------------------------------------------------------------------
# Show path bar
defaults write com.apple.finder ShowPathbar -bool true
# Search in current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"