-
Notifications
You must be signed in to change notification settings - Fork 0
/
boot_macos.sh
executable file
·37 lines (31 loc) · 1.1 KB
/
boot_macos.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
#!/usr/bin/env bash
# BASH script used to bootstrap a macOS machine.
# Author: Patrick Mullins ([email protected])
# Last update: October 29th, 2016
# Ask for the administrator password up front
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx_setup` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Clear the screen
clear
# Included Modules
sh "defaults/bootstrap_apps.sh"
sh "defaults/bootstrap_appstore.sh"
sh "defaults/bootstrap_dbug.sh"
sh "defaults/bootstrap_dock.sh"
sh "defaults/bootstrap_finder.sh"
sh "defaults/bootstrap_graphics.sh"
sh "defaults/bootstrap_keyboard.sh"
sh "defaults/bootstrap_mail.sh"
sh "defaults/bootstrap_safari.sh"
sh "defaults/bootstrap_spaces.sh"
sh "defaults/bootstrap_system.sh"
sh "defaults/bootstrap_textedit.sh"
sh "defaults/bootstrap_tmachine.sh"
sh "defaults/bootstrap_trackpad.sh"
# Restart applications and services
for app in "Address Book" "Calendar" "Contacts" "Dock" "Finder" "Mail" \
"Messages" "Safari" "SystemUIServer" "Terminal" \
"iCal"; do
killall "${app}" > /dev/null 2>&1
done