This repository has been archived by the owner on Jul 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathosx.rb
88 lines (62 loc) · 3.39 KB
/
osx.rb
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
dep "osx-settings.task" do
run {
log_shell "Expand expanded save panel by default",
"defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true"
log_shell "Expand expanded print panel by default",
"defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true"
log_shell "Disable Resume system-wide",
"defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false"
log_shell "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)",
"defaults write NSGlobalDomain AppleKeyboardUIMode -int 3"
log_shell "Disable press-and-hold in favour of key repeat",
"defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false"
# Set through KeyRemap4MacBook: 23 ms
#log_shell "Set a blazingly fast keyboard repeat rate",
# "defaults write NSGlobalDomain KeyRepeat -int 0"
# Set through KeyRemap4MacBook: 400 ms
#log_shell "Set a short initial keyboard delay time",
# "defaults write NSGlobalDomain InitialKeyRepeat -int 15"
log_shell "Show all filename extensions in Finder",
"defaults write NSGlobalDomain AppleShowAllExtensions -bool true"
log_shell "Show hidden files in Finder",
"defaults write com.apple.Finder AppleShowAllFiles false"
log_shell "Show status bar in Finder",
"defaults write com.apple.finder ShowStatusBar -bool true"
log_shell "Disable the warning when changing a file extension",
"defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false"
log_shell "Don't create .DS_Store files on network volumes",
"defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true"
log_shell "Show ~/Library folder",
"chflags nohidden ~/Library"
log_shell "Allow text selection in QuickLook",
"defaults write com.apple.finder QLEnableTextSelection -bool true"
log_shell "Automatically hide and show the Dock",
"defaults write com.apple.dock autohide -bool true"
log_shell "Enable Safaris debug menu",
"defaults write com.apple.Safari IncludeInternalDebugMenu -bool true"
log_shell "Disable the Ping sidebar in iTunes",
"defaults write com.apple.iTunes disablePingSidebar -bool true"
log_shell "Disable all the other Ping stuff in iTunes",
"defaults write com.apple.iTunes disablePing -bool true"
log_shell "Hide location services menu bar icon",
"launchctl unload -w /System/Library/LaunchAgents/com.apple.locationmenu.plist"
log_shell "Disable local Time Machine snapshots",
"sudo tmutil disablelocal"
log_shell "Prevent TimeMachine from asking for new backup disks",
"defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true"
log_shell "Disable hibernate",
"sudo pmset -a hibernatemode 0"
log_shell "Remove sleepimage",
"sudo rm /private/var/vm/sleepimage"
log_shell "Create empty sleepimage placeholder",
"sudo touch /private/var/vm/sleepimage"
log_shell "Make empty sleepimage unmodifiable",
"sudo chflags uchg /private/var/vm/sleepimage"
log_shell "Turn off sudden motion sensor",
"sudo pmset -a sms 0"
log_shell "Disable menu bar transaparency",
"defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false"
log_shell "Enable debug menu in DiskUtility",
"defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true"
}
end