-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·68 lines (49 loc) · 1.32 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
#!/usr/bin/env bash
set -xe
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Install default packages
readarray -t packages < $SCRIPT_DIR/.default_packages
sudo pacman -Syu "${packages[@]}"
set +e
# Install https://github.com/asdf-vm/asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
set -e
# Install volta version manager
curl https://get.volta.sh | bash
$HOME/.volta/bin/volta install "node@18"
# ============================
# Create additional folders in ~
mkdir -p $HOME/bin \
$HOME/c \
$HOME/share \
$HOME/tmp || true
# Install OhMyZsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" || true
set +e
# Install dotfiles
git clone [email protected]:hekar/dotfiles.git
rm ~/.bashrc
rm ~/.profile
rm ~/.gitconfig
rm ~/.zshrc
cd ./dotfiles
stow .
# Install tmuxp
pip install --user tmuxp || true
set -e
# Install asdf plugins
asdf_install () {
$HOME/.asdf/bin/asdf plugin add $1 || true
$HOME/.asdf/bin/asdf install $1 latest || true
$HOME/.asdf/bin/asdf global $1 latest || true
}
asdf_install awscli
asdf_install terraform
asdf_install terragrunt
asdf_install nomad
asdf_install packer
asdf_install starship
asdf_install 'terraform-ls'
asdf_install 'terraform-docs'
asdf_install kubectl
asdf_install kubectx