-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallscript
265 lines (192 loc) · 6.15 KB
/
installscript
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
#!/usr/bin/env bash
# Hide "last login" line when starting a new terminal session
touch $HOME/.hushlogin
# Install zsh
echo 'Install oh-my-zsh'
echo '-----------------'
rm -rf $HOME/.oh-my-zsh
curl -L https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
echo 'Install powerlevel10k'
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
echo 'Install zsh-autosuggestions'
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Add global gitignore
ln -s $HOME/.dotfiles/shell/.global-gitignore $HOME/.global-gitignore
git config --global core.excludesfile $HOME/.global-gitignore
#########################################################
### Setup Symlinks
#########################################################
# Symlink zsh prefs
rm $HOME/.zshrc
ln -s $HOME/.dotfiles/shell/.zshrc $HOME/.zshrc
# Symlink powerlevel10k prefs
rm $HOME/.p10k.zsh
ln -s $HOME/.dotfiles/shell/.p10k.zsh $HOME/.p10k.zsh
# Symlink vim prefs
rm $HOME/.vimrc
ln -s $HOME/.dotfiles/shell/.vimrc $HOME/.vimrc
rm $HOME/.vim
ln -s $HOME/.dotfiles/shell/.vim $HOME/.vim
# Symlink yarn prefs
rm $HOME/.yarnrc
ln -s $HOME/.dotfiles/shell/.yarnrc $HOME/.yarnrc
#########################################################
### Setup composer, brew and mas-cli
#########################################################
echo 'Install homebrew...'
sudo rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo 'Install composer'
brew install composer
echo 'Install mas'
brew install mas
#########################################################
### Install common dev/shell tools
#########################################################
echo "Installing ZSH syntax highlighting"
brew install zsh-syntax-hightlighting
echo 'Install Github CLI...'
brew install gh
echo 'Install Git Flow...'
brew install git-flow-avh
echo 'Install z...'
brew install z
echo 'Install pkg-config...'
brew install pkg-config
echo 'Install wget...'
brew install wget
echo 'Install httpie...'
brew install httpie
echo 'Install ncdu...'
brew install ncdu
echo 'Install hub...'
brew install hub
echo 'Install ack...'
brew install ack
echo 'Install doctl...'
brew install doctl
echo 'Install webp...'
brew install webp
echo 'Install docker...'
brew install --cask docker
brew install docker-compose
#########################################################
### Install PHP
#########################################################
echo 'Install PHP 7.4...'
brew install [email protected]
brew link [email protected] --force
echo 'Install imagemagick...'
brew install imagemagick
echo 'Install imagick...'
pecl install imagick
#########################################################
### Install NodeJS
#########################################################
echo 'Install node...'
brew install node
npm install -g n
n lts
echo 'Install yarn...'
brew install yarn
echo 'Install gulp-cli...'
npm install gulp-cli -g
########################################################
### Install Go
########################################################
echo 'Install Go'
brew install go
echo 'Install Go Doc'
go get golang.org/x/tools/cmd/godoc
echo 'Install Go Lint'
go get golang.org/x/lint/golint
#########################################################
### Install GUI tools and software
#########################################################
echo 'Install Google Chrome...'
brew install --cask google-chrome
echo 'Install Postman...'
brew install --cask postman
echo 'Install iterm2...'
brew install --cask iterm2
echo 'Install Jetbrains Toolbox...'
brew install --cask jetbrains-toolbox
echo 'Install Slack...'
brew install --cask slack
echo 'Install 1Password...'
brew install --cask 1password
echo 'Install Responsively...'
brew install --cask responsively
echo 'Install Spotify...'
brew install --cask spotify
echo 'Install numi...'
brew install --cask numi
echo 'Install Bartender...'
brew install --cask bartender
echo 'Install Toggl Track...'
brew install --cask toggl-track
echo 'Install Sky Fonts...'
brew install --cask skyfonts
echo 'Install Dropbox...'
brew install --cask dropbox
echo 'Install Figma'
brew install --cask figma
echo 'Install TablePlus'
brew install --cask tableplus
echo 'Install Telegram'
brew install --cask telegram
echo 'Install Visual Studio Code'
brew install --cask visual-studio-code
echo 'Install Cleanshot X'
brew install --cask cleanshot
echo 'Install Tripmode'
brew install --cask tripmode
echo 'Install WhatsApp Desktop'
mas install 1147396723
echo 'Install Magnet...'
mas install 441258766
echo 'Install The Unarchiver...'
mas install 425424353
echo 'Install Jira Cloud for Mac...'
mas install 1475897096
echo 'Install Teamviewer...'
brew install --cask teamviewer
echo 'Install Steam...'
brew install --cask steam
echo 'Install HEY...'
brew install --cask hey
echo 'Install Discord...'
brew install --cask discord
echo 'Install AdGuard'
mas install 1440147259
echo "Install Microsoft 365 apps..."
echo "Install Word..."
mas install 462054704
echo "Install Excel..."
mas install 462058435
echo "Install PowerPoint..."
mas install 462062816
echo "Install Outlook..."
mas install 985367838
echo "Install Onedrive..."
mas install 823766827
echo 'Install Xcode...'
mas install 497799835
###################################################################
### Install Jale
###################################################################
echo 'Install Jale...'
npm i -g jale
echo '++++++++++++++++++++++++++++++'
echo '++++++++++++++++++++++++++++++'
echo 'All done!'
echo 'Things to do to make the powerlevel10k terminal theme work:'
echo '1. Install fonts included in ~/.dotfiles/misc'
echo '2. Install theme included in ~/.dotfiles/misc'
echo '3. Install Jale with jale install'
echo '++++++++++++++++++++++++++++++'
echo 'Some optional tidbits'
echo "1. Set some sensible MacOS defaults by running: $HOME/.dotfiles/macos/set-defaults.sh"
echo "2. Make a .dotfiles-custom/shell/.aliases for your personal commands"
echo '++++++++++++++++++++++++++++++'
echo '++++++++++++++++++++++++++++++'