-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreferences.sh
executable file
·66 lines (47 loc) · 2.77 KB
/
preferences.sh
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
#!/bin/bash
# Disable Resume system-wide
defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false
defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -int 0
# Change screenshot format to JPG
defaults write com.apple.screencapture type jpg
# Disable shadow in screenshots
defaults write com.apple.screencapture disable-shadow -bool true
# Avoid creating .DS_Store files on USB volumes
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable natural scrolling
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Set the icon size of Dock items to 64 pixels
defaults write com.apple.dock tilesize -int 64
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Show hidden apps in the Dock
defaults write com.apple.Dock showhidden -bool true
# Remove the auto-hiding Dock delay
defaults write com.apple.dock autohide-delay -float 0
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
defaults write NSGlobalDomain WebAutomaticSpellingCorrectionEnabled -bool false
# Disable automatic capitalization
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
# Application Settings
## Finder
defaults write com.apple.Finder AppleShowAllFiles -boolean true # Show hidden files in Finder
defaults write com.apple.finder _FXSortFoldersFirst -bool true # Keep folders on top when sorting by name
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" # Search the current folder by default
defaults write com.apple.finder AppleShowAllExtensions -boolean true # Show all filename extensions in Finder
## App Store
defaults write com.apple.commerce AutoUpdate -bool true # Turn on app auto-update
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 # Check for software updates daily, not just once per week
defaults write com.apple.SoftwareUpdate AutomaticDownload -int 1 # Download newly available updates in background
defaults write com.apple.SoftwareUpdate CriticalUpdateInstall -int 1 # Install System data files & security updates
defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true # Enable the automatic update check
## Photos
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true # Prevent Photos from opening automatically when devices are plugged in
# Restart
killall Dock
killall Finder
echo "All settings have been applied. Some changes may require a logout/restart to take effect."