-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·57 lines (44 loc) · 1.39 KB
/
install.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
#!/usr/bin/env bash
echo Configuring mac
set -e
if [[ $(xcode-select --version) ]]; then
echo Xcode command tools already installed
else
echo "Installing Xcode commandline tools"
xcode-select --install
fi
if [[ $(brew --version) ]] ; then
echo "Attempting to update Homebrew"
brew update
brew upgrade
else
echo "Attempting to install Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)" # One-off setup, permanent setup is in fish config.
fi
brew bundle
# This is one-off, permanent setup is in fish config.
source "$(brew --prefix asdf)/libexec/asdf.sh"
asdf plugin add nodejs || true
asdf plugin add java || true
asdf plugin add terraform || true
asdf install nodejs 20.11.1
asdf global nodejs 20.11.1
asdf install java openjdk-21
asdf global java openjdk-21
asdf install terraform latest
asdf global terraform latest
asdf plugin-add direnv
asdf direnv setup --shell fish --version latest # This may not work on the first try
asdf global direnv 2.34.0
./fish/setup.sh
./nvim/setup.sh
./rust/setup.sh
./tmux/setup.sh
./go/setup.sh
./ruby/setup.sh
# Some helm related setup
helm plugin install https://github.com/databus23/helm-diff
helm plugin install https://github.com/jkroepke/helm-secrets --version v4.1.1
helm plugin install https://github.com/helm/helm-mapkubeapis
exec -l $SHELL