-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewMacSetup.sh
69 lines (67 loc) · 1.73 KB
/
newMacSetup.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
#!/bin/bash
USERNAME="username"
USEREMAIL="useremail"
echo STARTING NEW MacOS SET UP!
if test ! $(which brew); then
echo INSTALLING HOMEBREW...
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo updating brew...
brew update
echo INSTALLING CHROME...
if [ -d "/Applications/Google Chrome.app" ]; then
echo already exists
else
brew cask install google-chrome
fi
echo INSTALLING VS CODE...
if [ -d "/Applications/Visual Studio Code.app" ]; then
echo already exists
else
brew cask install google-chrome
fi
echo INSTALLING SLACK...
if [ -d "/Applications/Slack.app" ]; then
echo already exists
else
brew cask install slack
fi
echo INSTALLING SOURCETREE...
if [ -d "/Applications/Sourcetree.app" ]; then
echo already exists
else
brew cask install sourcetree
fi
echo INSTALLING Git...
if test ! $(which git); then
brew install git
fi
echo INSTALLING Go...
if test ! $(which go); then
brew install [email protected]
fi
echo INSTALLING POSTGRESQL...
if test ! $(which postgres); then
brew install [email protected]
fi
echo INSTALLING MONGODB....
if test ! $(which mongo); then
brew tap mongodb/brew
brew install [email protected]
fi
echo CONFIGURING GIT....
git config --global user.name $USERNAME
git config --global user.email $USEREMAIL
echo CONFIGURING Go...
echo SETTING UP GO WORKSPACE...
mkdir ~/go
mkdir ~/go/src
mkdir ~/go/bin
echo SETTING UP PATH...
echo 'export GOPATH=~/go' >> ~/.bash_profile
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bash_profile
echo CONFIGURING POSTGRESQL...
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
echo EXPORTING FLAGS...
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"