-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·77 lines (61 loc) · 1.54 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
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
67
68
69
70
71
72
73
74
75
76
77
#!/bin/sh
source utils/utils.sh
# BREW
if test ! $(which brew); then
e_header "Installing Homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
e_header "Updating Homebrew"
brew update
fi
e_success "brew updated done!"
# checks if apple ID was used as argument, if not ask for it
if [ $# -eq 0 ]
then
e_ask ' Enter your AppleID:'
read APPLEID
else
APPLEID=$1
fi
brew install mas
mas signout
e_header '🍎 Signing in with your appleID'
mas signin --dialog $APPLEID
mas upgrade
e_success "apple store apps upgrade done!"
e_header 'Next time you are asked for you password, enter you system passowrd'
# run Brewfile
e_header "Run Brewfile!"
brew tap Homebrew/bundle
brew bundle
e_success "brew and cask done!"
e_header "Setting GIT"
(cd git ; source index.sh)
e_success "GIT setup done!"
e_header "Setting Oh my zsh"
(cd oh-my-zsh ; source index.sh)
e_success "Oh my zsh installed!"
e_header "Setting up nodejs"
nvm install --lts
e_success "node setup done!"
e_header "Setting up mac os X"
(cd osx ; source index.sh)
e_success "OSX settings done!"
e_header "Setting VSCODE"
(cd vscode ; source index.sh)
e_success "VSCODE setup done!"
e_header "Setting Spectacle"
(cd spectacle ; source index.sh)
e_success "Spectacle setup done!"
# Sotftware update
e_success "Launching software update..."
softwareupdate -ia
read -p "Do you want to reboot your mac? [y|N] " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
exit 1
else
sudo reboot
fi
e_thanks "Author: https://github.com/phoinixi \n"