-
Notifications
You must be signed in to change notification settings - Fork 0
/
brew.sh
executable file
·52 lines (45 loc) · 914 Bytes
/
brew.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
#!/usr/bin/env bash
if [[ $(command -v brew) == "" ]]; then
echo "Installing Homebrew.. "
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "Updating Homebrew.. "
brew update
brew upgrade
fi;
# Install command-line tools using Homebrew
declare -a clis=(
'git'
'node'
'yarn'
'heroku'
'unrar'
'gnupg'
'wget'
);
for cli in "${clis[@]}"; do
if ! brew ls --versions $cli > /dev/null; then
brew install $cli
fi;
done;
unset cli;
# Install binaries using Homebrew cask
declare -a binaries=(
'visual-studio-code'
'spotify'
'google-chrome'
'firefox'
'hyper'
'slack'
'docker'
);
for binary in "${binaries[@]}"; do
if ! brew cask ls --versions ${binary} &> /dev/null; then
brew cask install $binary
fi;
if [ $binary == "visual-studio-code" ]; then
source ${PWD}/vscode.sh;
fi;
done;
# Cleanup
brew cleanup