3
3
4
4
# some useful settings, mostly cribbed from https://github.com/mathiasbynens/dotfiles/blob/master/.osx
5
5
6
- # Disable window animations
7
- defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
8
-
9
6
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
10
7
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
11
8
12
9
# Show remaining battery percentage
13
10
defaults write com.apple.menuextra.battery ShowPercent -string " YES"
14
11
defaults write com.apple.menuextra.battery ShowTime -string " NO"
15
12
13
+ # Finder
14
+ # Show the ~/Library folder by default
15
+ chflags nohidden ~ /Library
16
16
# Show all filename extensions in Finder
17
17
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
18
-
19
18
# Show all files in finder and open file dialogs
20
19
defaults write NSGlobalDomain AppleShowAllFiles -bool true
21
-
22
- # Disable disk image verification
23
- # defaults write com.apple.frameworks.diskimages skip-verify -bool true
24
- # defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
25
- # defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
26
-
27
20
# Automatically open a new Finder window when a read only volume is mounted
28
21
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
29
22
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
30
-
31
23
# Display full POSIX path as Finder window title
32
24
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
33
-
34
25
# Avoid creating .DS_Store files on network volumes
35
26
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
36
-
37
27
# Empty Trash securely by default
38
28
defaults write com.apple.finder EmptyTrashSecurely -bool true
29
+ # Disable disk image verification
30
+ # defaults write com.apple.frameworks.diskimages skip-verify -bool true
31
+ # defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
32
+ # defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
39
33
40
34
# Map bottom right Trackpad corner to right-click
41
35
# defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
42
36
# defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
43
37
38
+ # Safari
44
39
# Disable Safari’s thumbnail cache for History and Top Sites
45
40
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
46
-
47
41
# Enable Safari’s debug menu
48
42
defaults write com.apple.Safari IncludeDebugMenu -bool true
49
-
50
43
# Remove useless icons from Safari’s bookmarks bar
51
44
defaults write com.apple.Safari ProxiesInBookmarksBar " ()"
52
45
53
46
# Disable the Ping sidebar in iTunes
54
47
defaults write com.apple.iTunes disablePingSidebar -bool true
55
-
56
48
# Disable all the other Ping stuff in iTunes
57
49
defaults write com.apple.iTunes disablePing -bool true
58
50
@@ -63,7 +55,6 @@ defaults write com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments -dict
63
55
64
56
# Disable (some) MacOS Analytics
65
57
sudo defaults write /Library/Application\ Support/CrashReporter/DiagnosticMessagesHistory.plist AutoSubmit -int 0
66
-
67
58
# Disable (some) MacOS Diagnostics
68
59
echo " Checking if a configuration profile is configured for Apple Diagnostics; (investigate if something is returned)"
69
60
/usr/bin/sudo /usr/sbin/system_profiler SPConfigurationProfileDataType | /usr/bin/grep allowDiagnosticSubmission
@@ -74,12 +65,10 @@ echo "Checking if a configuration profile is configured for Apple Diagnostics; (
74
65
sudo /usr/libexec/PlistBuddy -c " Add :AutoSubmit bool NO" " /Library/Application Support/CrashReporter/DiagnosticMessagesHistory.plist"
75
66
sudo /usr/libexec/PlistBuddy -c " Add :ThirdPartyDataSubmit bool NO" " /Library/Application Support/CrashReporter/DiagnosticMessagesHistory.plist"
76
67
77
- # Show the ~/Library folder by default
78
- chflags nohidden ~ /Library
79
-
80
68
# Don't use native OSX full screen mode with iTerm2 (annoying animations)
81
69
defaults write com.googlecode.iterm2 UseLionStyleFullscreen -bool false
82
70
71
+ # iTerm2
83
72
# Prompt on quit in iTerm2
84
73
defaults write com.googlecode.iterm2 PromptOnQuit -bool true
85
74
# Use visual bell in iTerm2
@@ -93,16 +82,39 @@ defaults write com.googlecode.iterm2 CheckTestRelease -bool false
93
82
defaults write com.googlecode.iterm2 ShowNewOutputIndicator -bool false
94
83
# Hide iTerm2 tab number, I prefer to see more of the cwd path
95
84
defaults write com.googlecode.iterm2 HideTabNumber -bool true
96
-
97
85
# Don't use native OSX full screen mode with MacVim (annoying animations)
98
86
defaults write org.vim.MacVim MMNativeFullScreen -int 0
99
87
100
- # Kill affected applications
88
+ # Apple Dock
89
+ # If using uBar4 changes are redundant
90
+ defaults write com.apple.dock autohide-time-modifier -float 0
91
+ defaults write com.apple.dock autohide-delay -float 0
92
+ defaults write com.apple.dock expose-animation-duration -float 0
93
+ defaults write com.apple.dock springboard-show-duration -float 0
94
+ defaults write com.apple.dock springboard-hide-duration -float 0
95
+ defaults write com.apple.dock springboard-page-duration -float 0
96
+ defaults write com.apple.dock launchanim -bool false
97
+
98
+ # uBar4
99
+ # Hide 'uBar' from the uBar menu. Use YES instead of NO to restore it.
100
+ # defaults write ca.brawer.uBar menuAbout -bool NO
101
+ # Make apps that have a single window open, use the title of that window. Use NO instead of YES to use the app name.
102
+ defaults write ca.brawer.uBar singleWindowUsesTitle -bool YES
103
+ # Show the window count in grouped app tiles. Use NO instead of YES to hide the count.
104
+ defaults write ca.brawer.uBar showWindowCount -bool YES
105
+ # Use the document icon for windows. Use YES instead of NO to use the app icon when possible.
106
+ defaults write ca.brawer.uBar useAppIconForWindows -bool NO
107
+ # Practically hide the Apple Dock by making it’s auto-hide delay 1000 seconds.
108
+ defaults write com.apple.dock autohide-delay -float 1000 && killall Dock
109
+ # defaults delete com.apple.dock autohide-delay && killall Dock # Restore Apple Dock
110
+
111
+ # Restarting affected applications
112
+ echo " Restarting Apps to apply changes"
101
113
for app in Finder Dock SystemUIServer Safari Mail; do killall " $app " ; done
102
114
103
115
# DISABLING AirDrop; Apple advised Meter, UCLA, and other vendors, networking issues were caused by the “Apple Wireless Direct Link” interface, which helps power features like AirDrop and AirPlay:
104
116
# https://gist.github.com/pythoninthegrass/8073e5e3b24f385c9d9b712f6f243982
105
- echo " Disabling 'Apple Wireless Direct Link' Interface (Handoff/Continuity/AirDrop/AirPlay etc)"
117
+ echo " Shutting 'Apple Wireless Direct Link' Interface (Handoff/Continuity/AirDrop/AirPlay etc)"
106
118
sudo ifconfig awdl0 down
107
119
echo " To make AirDrop Interface disable permanent. See; https://github.com/jamestut/awdlkiller"
108
120
@@ -114,15 +126,7 @@ cd fonts
114
126
cd ..
115
127
rm -rf fonts
116
128
117
- echo " Deleting all local timemachine snapshots (does not impact external backups)"
118
- for d in $( tmutil listlocalsnapshotdates | grep " -" ) ; do sudo tmutil deletelocalsnapshots $d ; done
119
-
120
- echo " Deleting all local temp Caches"
121
- sudo rm -rf ~ /Library/Caches/*
122
-
123
- echo " Deleting all local logs"
124
- sudo rm -rf ~ /Library/Logs/*
125
-
129
+ echo " Installing XCode-Select"
126
130
xcode-select --install
127
131
sudo xcode-select --reset
128
132
@@ -132,9 +136,21 @@ sudo mdutil -a -i off
132
136
echo " Disabling Brew Analytics"
133
137
brew analytics off
134
138
139
+ echo " Starting Cleanup Actions"
140
+ echo " Deleting all local timemachine snapshots (does not impact external backups)"
141
+ for d in $( tmutil listlocalsnapshotdates | grep " -" ) ; do sudo tmutil deletelocalsnapshots $d ; done
142
+ echo " Deleting all local temp Caches"
143
+ sudo rm -rf ~ /Library/Caches/*
144
+ echo " Deleting all local temp logs"
145
+ sudo rm -rf ~ /Library/Logs/*
146
+
135
147
echo " Run system profiler with; sudo /usr/sbin/system_profiler"
136
148
echo " Clean up syslog and aslmanager etc; sudo rm -rf /var/log/asl/*"
137
149
echo " Enable " Displays have separate spaces" in settings, so menubars for applications stay in same window as the Application.."
138
150
139
- echo " TODO - Delete any found JAVA (or disable - Java can be disabled in System Preferences)"
140
- echo " TODO - Remove any found Flash Player"
151
+ echo
152
+ echo " Uninstall JAVA if not required (or disable - Java can be disabled in System Preferences)"
153
+ echo " https://www.java.com/en/download/uninstalltool.jsp"
154
+
155
+ echo
156
+ echo " Uninstall Flash Player"
0 commit comments