Compare commits

..

No commits in common. "cd60ff5c22d7178d1c78f6089c4f871a468a05c2" and "97a5065b8930fae866e9a9c91ca13a9865ea0d12" have entirely different histories.

3 changed files with 4 additions and 9 deletions

View file

@ -6,5 +6,4 @@ alias \
f='flux' \
h='helm' \
k='kubectl' \
m='minikube' \
v='velero'

View file

@ -2,10 +2,8 @@
# Auto-complete section
autoload bashcompinit && bashcompinit
command -v flux >/dev/null && . <(flux completion zsh) && complete -F _flux f
command -v gh >/dev/null && . <(gh completion -s zsh) && complete -F _gh
command -v helm >/dev/null && . <(helm completion zsh) && complete -F _helm h
command -v kubectl >/dev/null && . <(kubectl completion zsh) && complete -F __start_kubectl k
command -v kubectl-ctx >/dev/null && complete -W "$(kubectl-ctx)" kubectl-ctx
command -v minikube >/dev/null && . <(minikube completion zsh) && complete -F __minikube_convert_bash_to_zsh m
command -v velero >/dev/null && . <(velero completion zsh) && complete -F __start_velero v
command -v helm >/dev/null && . <(helm completion zsh) && complete -F _helm h
command -v flux >/dev/null && . <(flux completion zsh) && complete -F _flux f
command -v kubectl-ctx >/dev/null && complete -W "$(kubectl-ctx)" kubectl-ctx

View file

@ -14,8 +14,6 @@ script_dir="$(
opt_dir=/opt/dotfiles
python_venv=$opt_dir/pyenv
[ -z "$KREW_ROOT" ] && export KREW_ROOT="${XDG_DATA_HOME:-$HOME/.local/share}/krew"
#
# Argument parsing and help
#
@ -207,7 +205,7 @@ function setup_krew() {
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz"
tar zxvf "${KREW}.tar.gz"
./"${KREW}" install krew
export PATH="$KREW_ROOT/bin:$PATH"
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
set +e
}