-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac
75 lines (52 loc) · 1.5 KB
/
mac
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
#!/bin/sh
append_to_bash_profile() {
echo "$1">> ~/.bash_profile
}
echo_info() {
echo -e "\x1b[1;34m[S] First Day: $1\e[0m"
}
echo_success() {
echo -e "\x1b[1;32m[S] First Day: $1\e[0m"
}
if ! command -v xcode-select >/dev/null; then
echo "Looks like we need to install xcode cli tools..."
xcode-select --install
fi
if ! command -v brew >/dev/null; then
echo "Installing Homebrew ..."
curl -fsS 'https://raw.githubusercontent.com/Homebrew/install/master/install' | ruby
fi
brew tap caskroom/cask
# Programs
echo "Let's install some software..."
brew cask install microsoft-teams
brew cask install lastpass
brew cask install sequel-pro
brew cask install iterm2
brew cask install authy-desktop
brew cask install google-chrome
brew cask install spotify
brew cask install docker
# Databases
echo "Let's add some databases..."
brew cask install mysql
brew cask install postgresql
brew cask install mongodb
brew cask install redis
brew cask install elasticsearch
brew cask install mysqlworkbench
# Languages
echo "Lets add some language, but first some version managers..."
brew install nvm
brew install npm
mkdir -p ~/.nvm
# shellcheck disable=SC2016
append_to_bash_profile 'export NVM_DIR="$HOME/.nvm"'
# shellcheck disable=SC2016
append_to_bash_profile ' . "$(brew --prefix nvm)/nvm.sh"'
echo 'Refreshing...'
source ~/.bash_profile
echo 'Just need to finalize Lastpass'
cd /usr/local/Caskroom/lastpass/latest/
open Lastpass\ Installer.app
echo 'Now your good to go! And welcome to Scope Web'