#!/usr/bin/env bash set -e set -o noglob apk add --no-cache \ age bash bind-tools ca-certificates curl direnv fish fzf \ gettext git github-cli helm iputils jq k9s kubectl kustomize \ python3 py3-pip moreutils openssh-client openssl starship yq apk add --no-cache \ --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \ go-task sops apk add --no-cache \ --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing \ cilium-cli kubeconform lsd stern for app in \ "budimanjojo/talhelper!!?as=talhelper&type=script" \ "cloudflare/cloudflared!!?as=cloudflared&type=script" \ "fluxcd/flux2!!?as=flux&type=script" \ "helmfile/helmfile!!?as=helmfile&type=script" \ "kubecolor/kubecolor!!?as=kubecolor&type=script" \ "kubernetes-sigs/krew!!?as=krew&type=script" \ "siderolabs/talos!!?as=talosctl&type=script" do echo "=== Installing ${app} ===" curl -fsSL "https://i.jpillora.com/${app}" | bash done # Create the fish configuration directory mkdir -p /home/vscode/.config/fish/{completions,conf.d} # Setup autocompletions for fish for tool in cilium flux helm helmfile k9s kubectl kustomize talhelper talosctl; do $tool completion fish > /home/vscode/.config/fish/completions/$tool.fish done gh completion --shell fish > /home/vscode/.config/fish/completions/gh.fish stern --completion fish > /home/vscode/.config/fish/completions/stern.fish yq shell-completion fish > /home/vscode/.config/fish/completions/yq.fish # Add hooks into fish tee /home/vscode/.config/fish/conf.d/hooks.fish > /dev/null < /dev/null < /dev/null < /dev/null <