-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
28 lines (18 loc) · 1.22 KB
/
install.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
#!/usr/bin/env bash
# WARNING - Do not run this script without reading every line (and understanding it)
# Close any open System Preferences panes, to prevent them from overriding settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
################################################################################
#INSTALL YADR
sh -c "`curl -fsSL https://raw.githubusercontent.com/skwp/dotfiles/master/install.sh`"
#Run post-yadr-install script
sh -c "`curl -fsSL https://raw.githubusercontent.com/rubensz/dotfiles/master/post-yadr-install/yadr-post-install.sh`"
#Run post-yadr-app-install script
sh -c "`curl -fsSL https://raw.githubusercontent.com/rubensz/dotfiles/master/post-yadr-install/post-yadr-app-install.sh`"
#Run sensible-macos-settings
sh -c "`curl -fsSL https://raw.githubusercontent.com/rubensz/dotfiles/master/post-yadr-install/sensible-macos-settings.sh`"
echo "Rubensz dotfiles installtion is done. Note that some of these changes require a logout/restart to take effect."