-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·200 lines (137 loc) · 4.21 KB
/
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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#!/bin/bash
HOST_NAME=$(hostname | cut -d"." -f1)
# shellcheck source=/dev/null
source "/Users/$HOST_NAME/Projects/repos/oh_my_bash/custom.sh"
if [ -d ~/.oh-my-zsh ]; then
printColors orange "oh-my-zsh is installed"
else
printColors green "Installing Oh my Zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi
# Installing Brew
printColors green "🤘 Installing brew.... 🤘"
if ! command -v brew &>/dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
exit
else
printColors orange "brew is installed"
fi
read -r -p "Do you want to install Xcode Command Line Tools? (y/n)" response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
printColors green "🤘 Installing Xcode Command Line Tools.... 🤘"
xcode-select --install
fi
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >>/Users/$HOST_NAME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
printColors green "setting github info"
# setting github info
# git config --global user.email "byverdu@gmail.com"
# git config --global user.name "Albert Vallverdu"
# Installing dependencies through brew
printColors green "🤘 Installing brew packages.... 🤘"
# Chrome
brew install --cask google-chrome
# Firefox
# brew tap homebrew/cask-versions
# brew install --cask firefox-developer-edition
# VSCode
brew tap homebrew/cask
brew install --cask visual-studio-code
# iTerm
brew install --cask iterm2
# postman
brew install --cask postman
# docker
brew install --cask docker
# deno
brew install deno
# mongo UI clients
# brew install --cask robo-3t
# brew install --cask studio-3t
# brave-browser
# brew install --cask brave-browser
# node
brew install node
# yarn
brew install yarn
# python3
brew install python3
# print tree directory on terminal
brew install tree
# slack
# brew install --cask slack
# Fira Code
brew tap homebrew/cask-fonts
brew install --cask font-fira-code
brew install --cask font-jetbrains-mono
# mongo
brew tap mongodb/brew
brew install mongodb-community@4.4
# GitHub CLI
brew install gh
# shell bash syntax checker
brew install shellcheck
# amazon-q app terminal tool
brew install --cask amazon-q
# like cat but pretty formatted
brew install bat
# expressvpn
brew install --cask expressvpn
# higlight shell commands
brew install zsh-syntax-highlighting
# pnpm
brew install pnpm
# betterdisplay
brew install --cask betterdisplay
# microsoft teams
brew install --cask microsoft-teams
# runjs
brew install --cask runjs
# outlook
brew install --cask microsoft-outlook
# logitech options
brew install --cask logitech-options
# vlc desktop app
# brew install --cask vlc
# vnc client app
# brew install vnc-viewer
# binance desktop app
# brew install binance
# plex server
# brew install --cask plex
# transmission
# brew install --cask transmission
# dropbox
# brew install --cask dropbox
# whatsapp
# brew install --cask whatsapp
# alfred
# brew install --cask alfred
# Cloning repos
printColors green "🤘 Installing git repos.... 🤘"
cd ~/Projects/repos || exit
printColors green "🤘 Installing dracula theme.... 🤘"
git clone https://github.com/dracula/iterm.git
# Appending to zshrc
printColors green "🤘 Appending to zshrc 🤘"
printf "\n" >>~/.zshrc
echo "# Appending custom bash config" >>~/.zshrc
echo "export GLOBAL_PATH=/Users/$HOST_NAME/Projects" >>~/.zshrc
echo "source ~/Projects/repos/oh_my_bash/custom.sh" >>~/.zshrc
echo "source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >>~/.zshrc
printf "\n" >>~/.zshrc
printColors green "🤘 NVM setup 🤘"
echo "# NVM config" >>~/.zshrc
cd ~ || exit 1
git clone https://github.com/nvm-sh/nvm.git .nvm
cd ~/.nvm || exit 1
LATEST_NVM_TAG=$(git describe --abbrev=0 --tags)
git checkout "$LATEST_NVM_TAG"
# shellcheck source=/dev/null
. ./nvm.sh
printf "\n"
echo "export NVM_DIR=\"$HOME/.nvm\"" >>~/.zshrc
echo "[ -s $NVM_DIR/nvm.sh ] && \. $NVM_DIR/nvm.sh # This loads nvm" >>~/.zshrc
echo "[ -s \"$NVM_DIR/bash_completion\" ] && \. \"$NVM_DIR/bash_completion\" # This loads nvm bash_completion" >>~/.zshrc
printColors green "✋✋✋ setup script has finished ✋✋✋"
printColors green "✋✋✋ remember to install BetterDisplay ✋✋✋"