13
13
echo_item " Homebrew is not installed and is required for configuration!" yellow
14
14
if get_boolean_response " Do you want to install Homebrew?" ; then
15
15
echo_item " Installing Homebrew, this can take some time..." yellow
16
+
16
17
/bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) "
18
+
17
19
echo_item " Done!" green
18
20
else
19
21
echo_item " Skipping Homebrew installation..." red
@@ -47,28 +49,6 @@ echo "--------------------------------------------------------------------------
47
49
48
50
49
51
50
- # Install Node -----------------------------------------------------------------
51
- # ------------------------------------------------------------------------------
52
- if exists " node" ; then
53
- echo_item " Node.js is correctly installed." green
54
- else
55
- echo_item " Node.js is not installed and is required for some tools to work." yellow
56
- if get_boolean_response " Do you want to install Node?" ; then
57
- echo_item " Installing Node..." yellow
58
- brew install node
59
- brew install yarn
60
- # Centralize global npm packages for different node versions
61
- echo " prefix = /usr/local" > ~ /.npmrc
62
- echo_item " Done!" green
63
- else
64
- echo_item " Skipping Node.js installation..." red
65
- echo_item " Node is a very useful tool, you'll probably need it."
66
- fi
67
- fi
68
- echo " --------------------------------------------------------------------------"
69
-
70
-
71
-
72
52
# Install Utilities ------------------------------------------------------------
73
53
# ------------------------------------------------------------------------------
74
54
packages=(
@@ -77,10 +57,6 @@ packages=(
77
57
" gpg"
78
58
" python3"
79
59
" tree"
80
- " reattach-to-user-namespace"
81
- " minikube"
82
- " kubernetes-cli"
83
- " redis"
84
60
" direnv"
85
61
" bat"
86
62
" git-delta"
90
66
brew install $i
91
67
echo " --------"
92
68
done
93
- brew services start redis
94
69
echo_item " Done!" green
95
70
echo " --------------------------------------------------------------------------"
96
71
@@ -119,15 +94,11 @@ echo "Includes: flux, divvy, keka, macdown and others..."
119
94
if get_boolean_response " Do you want to install this apps?" ; then
120
95
echo_item " Installing apps..." yellow
121
96
apps=(
122
- " phoenix"
123
97
" flux"
124
98
" keka"
125
99
" macdown"
126
100
" the-unarchiver"
127
101
" appcleaner"
128
- " postgres"
129
- " kitematic"
130
- " alacritty"
131
102
)
132
103
for i in " ${apps[@]} "
133
104
do
@@ -152,7 +123,7 @@ if get_boolean_response "Do you want to install and use Fish shell?"; then
152
123
echo_item " Installing Fish shell..." yellow
153
124
brew install fish
154
125
echo_item " Changing to Fish shell... Might require password:" yellow
155
- echo /usr/local/bin/ fish | sudo tee -a /etc/shells
126
+ echo $( which fish) | sudo tee -a /etc/shells
156
127
chsh -s $( which fish)
157
128
echo_item " Fish shell successfully installed!" green
158
129
echo " --------------------------------------------------------------------------"
@@ -179,25 +150,6 @@ echo "--------------------------------------------------------------------------
179
150
180
151
181
152
182
- # Install Hyper.js -------------------------------------------------------------
183
- # ------------------------------------------------------------------------------
184
- echo_item " Hyper.js terminal:" blue
185
- if get_boolean_response " Do you want to install Hyper.js Terminal?" ; then
186
- echo_item " Installing Hyper.js..." yellow
187
- brew install hyper
188
- echo_item " Hyper.js successfully installed!" green
189
- echo " --------------------------------------------------------------------------"
190
- echo_item " Symlinking Hyper.js configuration..." yellow
191
- ln -sf ` pwd` /hyper/hyper.js ~ /.hyper.js
192
- echo_item " Done!" green
193
- else
194
- echo_item " Skipping Hyper.js installation..." red
195
- echo_item " You'll need a true color terminal emulator like iTerm2 or Hyper.js"
196
- fi
197
- echo " --------------------------------------------------------------------------"
198
-
199
-
200
-
201
153
# Install asdf ----------------------------------------------------------------
202
154
# ------------------------------------------------------------------------------
203
155
echo_item " asdf version manager (manage many languages versions):" blue
@@ -208,6 +160,7 @@ if get_boolean_response "Do you want to install asdf?"; then
208
160
asdf plugin-add erlang
209
161
asdf plugin-add elixir
210
162
asdf plugin-add nodejs
163
+ asdf install nodejs 20.11.1
211
164
echo_item " asdf successfully installed!" green
212
165
else
213
166
echo_item " Skipping asdf installation..."
@@ -259,13 +212,15 @@ if get_boolean_response "Do you want to install Neovim?"; then
259
212
mkdir -p ~ /.config/nvim
260
213
mkdir -p ~ /.config/nvim/plugin
261
214
ln -sf ` pwd` /nvim/init.vim ~ /.config/nvim/
215
+ ln -sf ` pwd` /nvim/init.lua ~ /.config/nvim/
262
216
ln -sf ` pwd` /nvim/plugins.vim ~ /.config/nvim/
263
217
ln -sf ` pwd` /nvim/functions.vim ~ /.config/nvim/
264
218
ln -sf ` pwd` /nvim/autocmds.vim ~ /.config/nvim/
265
219
ln -sf ` pwd` /nvim/keybindings.vim ~ /.config/nvim/
266
220
ln -sf ` pwd` /nvim/settings.vim ~ /.config/nvim/
267
221
ln -sf ` pwd` /nvim/editorconfig ~ /.editorconfig
268
222
ln -sf ` pwd` /nvim/plugin/* .vim ~ /.config/nvim/plugin/
223
+ ln -sf ` pwd` /nvim/lua/* .lua ~ /.config/nvim/lua/
269
224
echo_item " Done!" green
270
225
echo " --------------------------------------------------------------------------"
271
226
echo_item " Downloading Neovim python 3 client..." yellow
@@ -309,15 +264,13 @@ modules=(
309
264
" standard"
310
265
" prettier"
311
266
" javascript-typescript-langserver"
312
- " vue-language-server"
313
267
)
314
268
echo_item " Node Global Packages:" blue
315
269
echo_item " Packages:"
316
270
echo " - standard (JS style, linting & formater)"
317
271
echo " - prettier (Style formater for css, json and scss)"
318
272
echo " - tern (required for Neovim JS linting)"
319
273
echo " - javascript-typescript-langserver (Language Server for Javascript)\n"
320
- echo " - vue-language-server (Language Server for Vue.js)\n"
321
274
if get_boolean_response " Do you want to install these global packages?" ; then
322
275
if get_boolean_response " Do you want to use yarn?" ; then
323
276
echo_item " Installing packages with yarn..." yellow
@@ -375,7 +328,7 @@ echo "--------------------------------------------------------------------------
375
328
echo_item " Elixir:" blue
376
329
if get_boolean_response " Do you want to install the Elixir programming language?" ; then
377
330
echo_item " Installing Elixir..." yellow
378
- brew install elixir
331
+ asdf install elixir 1.16.1-otp-26
379
332
echo_item " Elixir successfully installed!" green
380
333
else
381
334
echo_item " Skipping Elixir installation..."
@@ -384,20 +337,6 @@ echo "--------------------------------------------------------------------------
384
337
385
338
386
339
387
- # Install Crystal --------------------------------------------------------------
388
- # ------------------------------------------------------------------------------
389
- echo_item " Crystal:" blue
390
- if get_boolean_response " Do you want to install the Crystal programming language?" ; then
391
- echo_item " Installing Crystal..." yellow
392
- brew install crystal-lang
393
- echo_item " Crystal successfully installed!" green
394
- else
395
- echo_item " Skipping Crystal installation..."
396
- fi
397
- echo " --------------------------------------------------------------------------"
398
-
399
-
400
-
401
340
# Install Rust -----------------------------------------------------------------
402
341
# ------------------------------------------------------------------------------
403
342
echo_item " Rust:" blue
@@ -423,10 +362,8 @@ echo "--------------------------------------------------------------------------
423
362
# ------------------------------------------------------------------------------
424
363
echo_item " Ctags:" blue
425
364
if get_boolean_response " Do you want to install Ctags?" ; then
426
- echo_item " Brew tapping Universal Ctags..." yellow
427
- brew tap universal-ctags/universal-ctags
428
365
echo_item " Installing Universal Ctags..." yellow
429
- brew install --HEAD universal-ctags
366
+ brew install universal-ctags
430
367
echo_item " Done!" green
431
368
echo " --------------------------------------------------------------------------"
432
369
echo_item " Symlinking custom Ctags..." yellow
@@ -480,17 +417,6 @@ ln -sf `pwd`/default-gems ~/.default-gems
480
417
ln -sf ` pwd` /gitconfig ~ /.gitconfig
481
418
ln -sf ` pwd` /gitignore_global ~ /.gitignore_global
482
419
483
- echo_item " Creating phoenix symlinks..." yellow
484
- mkdir -p ~ /.config/phoenix
485
- mkdir -p ~ /.config/phoenix/config
486
- mkdir -p ~ /.config/phoenix/helpers
487
- mkdir -p ~ /.config/phoenix/shortcuts
488
- mkdir -p ~ /.config/phoenix/spaces
489
- ln -sf ` pwd` /phoenix/phoenix.js ~ /.config/phoenix/
490
- ln -sf ` pwd` /phoenix/config/* .js ~ /.config/phoenix/config/
491
- ln -sf ` pwd` /phoenix/helpers/* .js ~ /.config/phoenix/helpers/
492
- ln -sf ` pwd` /phoenix/shortcuts/* .js ~ /.config/phoenix/shortcuts/
493
- ln -sf ` pwd` /phoenix/spaces/* .js ~ /.config/phoenix/spaces/
494
420
495
421
496
422
echo_item " All done here!" blue
0 commit comments