mirror of
https://gitlab.com/dabruh/dotfiles.git
synced 2025-12-09 19:56:26 +01:00
Compare commits
No commits in common. "cd60ff5c22d7178d1c78f6089c4f871a468a05c2" and "97a5065b8930fae866e9a9c91ca13a9865ea0d12" have entirely different histories.
cd60ff5c22
...
97a5065b89
3 changed files with 4 additions and 9 deletions
|
|
@ -6,5 +6,4 @@ alias \
|
|||
f='flux' \
|
||||
h='helm' \
|
||||
k='kubectl' \
|
||||
m='minikube' \
|
||||
v='velero'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue