-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup-user.sh
48 lines (33 loc) · 1.66 KB
/
setup-user.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
#!/bin/bash
# Mac Setup Script for User Settings
# Set Global Variables
currentUser=`ls -l /dev/console | cut -d " " -f4`
# Disable reopen in preview
defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false
# Disable QuickTime Re-Open
defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false
# Disable Dashboard
defaults write com.apple.dashboard mcx-disabled -bool YES; killall Dock &
# Disable iCloud Drive Saving
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Disable Crash Reporter
defaults write com.apple.CrashReporter DialogType none
# Enable path view in Finder
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
# Make a recent applications folder in the Dock
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
# Disable verification of DMG's
defaults write com.apple.frameworks.diskimages skip-verify TRUE
# Notify the user that it was a success
echo User setup successful!!!
# Disable the accidental Google Chrome swipe
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE
# Disable photos from opening everytime an iOS device is plugged in
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES
# Enable Battery Percentage
sudo -u $currentUser defaults write com.apple.menuextra.battery ShowPercent YES
sudo -u $currentUser killall SystemUIServer
# Disable Writing on Network Drives
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Force Screensaver Sleep to 0
defaults write com.apple.screensaver.plist askForPasswordDelay -int 0