-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-generic
executable file
·54 lines (53 loc) · 2.18 KB
/
setup-generic
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
#!/usr/bin/env bash
set -euxo pipefail
python3 -m pip install --upgrade \
powerline-status \
stormssh
#gfind . -mindepth 1 -maxdepth 1 -type d ! -name '*git' | xargs basename | xargs -0 stow
if ! [[ -e ~/.vim/bundle/Vundle.vim ]]; then
git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/Vundle.vim
fi
if ! grep -q fish <<< "$SHELL"; then
sudo chsh -s $(which fish) $USER
fi
curl -fksSLO https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
curl -sfL https://git.io/fundle-install | fish
fish -c 'fundle install'
(
set -x; cd "$(mktemp -d)" &&
OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
KREW="krew-${OS}_${ARCH}" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
tar zxvf "${KREW}.tar.gz" &&
./"${KREW}" install krew
)
(
$HOME/.krew/bin/kubectl-krew install ctx ns ingress-nginx minio neat konfig cert-manager sniff
$HOME/.krew/bin/kubectl-krew update
$HOME/.krew/bin/kubectl-krew upgrade
)
(
curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh
install -m 0755 kubectl-crossplane $HOME/.local/bin/kubectl-crossplane
install -m 0755 kubectl-crossplane $HOME/.local/bin/crossplane
)
curl https://gcpdiag.dev/gcpdiag.sh -o $HOME/.local/bin/gcpdiag
chmod +x $HOME/.local/bin/gcpdiag
# TODO: gcloud components install gke-gcloud-auth-plugin
python3 -m pip install asciicast2movie
OS=$(go env GOOS); ARCH=$(go env GOARCH); curl -sSL -o cmctl.tar.gz https://github.com/cert-manager/cert-manager/releases/download/v1.7.2/cmctl-$OS-$ARCH.tar.gz
tar xzf cmctl.tar.gz
mv -v cmctl $HOME/.local/bin/
npm install --global jsonwebtokencli
{
mkdir -p ~/.local/bin
echo -e "#!/usr/bin/env bash\nset -euxo pipefail\ngit branch --merged | grep -v '*' | xargs git branch -d || echo No merged local branches found" > ~/.local/bin/git-prune-branches
chmod +x ~/.local/bin/git-prune-branches
}
go install github.com/hashicorp/terraform-config-inspect@latest
curl https://get.volta.sh | bash
for dir in fish git ipython linters powerline tmux vim
stow $dir
done
vim +VundleInstall