-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·57 lines (48 loc) · 968 Bytes
/
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
#!/bin/bash
tools=(
iterm2
fig
raycast
)
packages=(
php
brew-php-switcher
mysql
redis
node
nvm
git
composer
)
# Install the Homebrew
if test ! "$(which brew)"; then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update Homebrew
echo "Updating Homebrew..."
brew update
# Install Packages
echo "Installing Packages..."
for package in "${packages[@]}"; do
if brew list "$package" > /dev/null 2>&1; then
echo "$package already installed... skipping."
else
brew install "$package"
fi
done
# Install Tools
echo "Installing Tools..."
for tool in "${tools[@]}"; do
if brew list --cask "$tool" > /dev/null 2>&1; then
echo "$tool already installed... skipping."
else
brew install --cask "$tool"
fi
done
# Install Xcode
if ! xcode-select -p > /dev/null; then
xcode-select --install
else
echo "Xcode already installed... skipping."
fi