-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTAMU-Web-Setup.sh
36 lines (26 loc) · 981 Bytes
/
TAMU-Web-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
#!/usr/bin/env bash
pretty_print() {
printf "\n%b\n" "$1"
}
#
pretty_print "Setting up TMAU Web Environment..."
if ! command -v brew &>/dev/null; then
pretty_print "Installing Homebrew, an OSX package manager, follow the instructions..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
if ! grep -qs "recommended by brew doctor" ~/.zshrc; then
pretty_print "Put Homebrew location earlier in PATH ..."
printf '\n# recommended by brew doctor\n' >> ~/.zshrc
printf 'export PATH="/usr/local/bin:$PATH"\n' >> ~/.zshrc
export PATH="/usr/local/bin:$PATH"
fi
else
pretty_print "You already have Homebrew installed...good job!"
fi
pretty_print "Updating brew formulas"
brew update
pretty_print "Installing NodeJS"
brew install node@18
pretty_print "Installing NVM"
brew install nvm
pretty_print "Checking for Git. If prompted, follow the on screen instructions"
git --version