-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
58 lines (45 loc) · 1.62 KB
/
setup.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
#!/bin/bash
source ./utils/colors.sh
source ./utils/formatting.sh
osascript -e 'tell application "System Preferences" to quit'
section "Asking for root password..."
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 &
section "Installing HomeBrew & Formulae..."
task "HomeBrew" "./os/install/brew.sh"
for i in ./os/install/brew/*
do
package=$(basename $i)
task "$package" "./utils/brew-install-package.sh $package"
done
section "Installing rvm & rubies"
task "rvm" "./os/install/rvm.sh"
task "ruby-latest" "./os/install/ruby.sh"
section "MacOS changes"
task "Dock" "./os/defaults/dock.sh"
task "Spotlight" "./os/defaults/spotlight.sh"
task "Safari" "./os/defaults/safari.sh"
task "Mail" "./os/defaults/mail.sh"
task "Finder" "./os/defaults/finder.sh"
task "System" "./os/defaults/system.sh"
section "Installing applications via cask"
for i in ./os/install/cask/*
do
package=$(basename $i)
task "$package" "./utils/cask-install-package.sh $package"
done
section "Installing node environment..."
task "node" "./os/install/node.sh"
task "webpack2" "./os/install/node/webpack.sh"
task "typescript" "./os/install/node/typescript.sh"
task "eslint" "./os/install/node/eslint.sh"
task "gulp" "./os/install/node/gulp.sh"
section "Installing scripts..."
task "config & aliases" "./os/install/config.sh"
task "fish shell" "./os/install/fish"
task "php composer" "./os/install/composer"
if [ ! -f "~/.ssh/id_rsa" ]; then
section "git"
task "Generating SSH key", "./os/install/git/setup-ssh-keys.sh"
fi