-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_tools.sh
49 lines (44 loc) · 1.95 KB
/
install_tools.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
#!/usr/bin/env bash
# This script still assumes it's running on wsl that's why we neither install kubectl nor docker because it's
# provided by Docker Desktop for Windows
sudo apt-get update && sudo apt upgrade -y
# TODO for the p10k theme install Meslo LGS NF font
# install zsh and make it the default shell
sudo apt install -y zsh
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sudo cp .zshrc ~/.zshrc
sudo cp .p10k.zsh ~/.p10k.zsh
sudo apt install -y unzip
# install helm
sudo curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && sudo chmod 700 get_helm.sh && sudo ./get_helm.sh
# install azure cli
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# install aws cli
sudo curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
sudo unzip awscliv2.zip
sudo ./aws/install
# install jq
sudo apt install -y jq
# install terraform
sudo apt-get install -y gnupg software-properties-common
sudo wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
sudo gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get install -y terraform
# notary
sudo apt install -y notary
# kubectl autocompletion
source <(kubectl completion zsh)
kubectl completion zsh > "${fpath[1]}/_kubectl"
# helm autocompletion
source <(helm completion zsh)
helm completion zsh > "${fpath[1]}/_helm"