-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
131 lines (119 loc) Β· 7.41 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/bin/bash
set +e
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β β
β β ββββ βββ βββ βββ βββββββ βββββββ β β
β β βββββ βββ βββ βββ ββββββββ βββββββββ β β
β β ββββββ βββ βββ βββ ββββββββ βββ βββ β β
β β ββββββββββ βββ βββ ββββββββ βββ βββ β β
β β βββ ββββββ βββββββββ βββ βββ βββββββββ β β
β β βββ βββββ βββββββ βββ βββ βββββββ β β
β β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
"
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Installing Homebrew πΊ β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
# Install Homebrew
if test ! $(which brew); then
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Installing Xcode π¨ β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
xcode-select --install
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Installing Homebrew πΊ β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Updating Homebrew β¬οΈ β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
brew update
brew upgrade
fi
function install {
cmd=$1
shift
for pkg in $@;
do
exec="$cmd $pkg"
echo "Execute: $exec"
if ${exec} ; then
echo "Installed $pkg"
else
echo "Failed to execute: $exec"
fi
done
}
export -f install
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Configuring workspace π₯οΈ β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
./scripts/workspace.sh
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Installing Packages β¨ β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
./scripts/brew.sh
./scripts/cargo.sh
./scripts/fonts.sh
./scripts/mas.sh
./scripts/npm.sh
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Cleaning up π β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
brew cleanup
brew cask cleanup
npm prune -g
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Done β
β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Login π β
β - 1Password β
β - Discord β
β - Figma β
β - Ledger Live β
β - Linear β
β - Microsoft Edge β
β - Notion β
β - Slack β
β - Spark β
β - Spotify β
β - Tower β
β - Vercel β
β - Wireguard β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"
echo "
ββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Configure π¨ β
β - iTerm2 β
β - Microsoft Edge β
β - Tower β
β - Visual Studio Code β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββ
"