forked from jayharris/-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.osx-reset
executable file
·39 lines (26 loc) · 1.48 KB
/
.osx-reset
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
#!/usr/bin/env bash
# Ask for administrator password upfront and keep it alive
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
defaults delete com.apple.universalaccess reduceTransparency
defaults write com.apple.systemuiserver menuExtras -array \
"/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \
"/System/Library/CoreServices/Menu Extras/Volume.menu" \
"/System/Library/CoreServices/Menu Extras/User.menu"
defaults delete -g AppleHighlightColor
defaults delete -g NSTableViewDefaultSizeMode
defaults write -g AppleShowScrollBars -string "Automatic"
default delete -g NSAutomaticWindowAnimationsEnabled
defaults delete -g NSWindowResizeTime
defaults delete com.apple.LaunchServices LSQuarantine
defaults write com.apple.screencapture type -string "jpg"
defaults write com.apple.screencapture location -string "${HOME}/Desktop"
defaults write com.apple.finder DisableAllAnimations -bool false
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Desktop/"
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
defaults write -g AppleShowAllExtensions -bool false
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true
defaults write com.apple.finder WarnOnEmptyTrash -bool true