mirror of
https://gitlab.com/dabruh/dotfiles.git
synced 2025-04-18 07:08:10 +02:00
Compare commits
3 commits
97a5065b89
...
cd60ff5c22
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cd60ff5c22 | ||
![]() |
e34b12a5eb | ||
![]() |
b49aa0be3d |
3 changed files with 9 additions and 4 deletions
|
@ -6,4 +6,5 @@ alias \
|
||||||
f='flux' \
|
f='flux' \
|
||||||
h='helm' \
|
h='helm' \
|
||||||
k='kubectl' \
|
k='kubectl' \
|
||||||
|
m='minikube' \
|
||||||
v='velero'
|
v='velero'
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
|
|
||||||
# Auto-complete section
|
# Auto-complete section
|
||||||
autoload bashcompinit && bashcompinit
|
autoload bashcompinit && bashcompinit
|
||||||
command -v kubectl >/dev/null && . <(kubectl completion zsh) && complete -F __start_kubectl k
|
|
||||||
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 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 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
|
||||||
|
|
|
@ -14,6 +14,8 @@ script_dir="$(
|
||||||
opt_dir=/opt/dotfiles
|
opt_dir=/opt/dotfiles
|
||||||
python_venv=$opt_dir/pyenv
|
python_venv=$opt_dir/pyenv
|
||||||
|
|
||||||
|
[ -z "$KREW_ROOT" ] && export KREW_ROOT="${XDG_DATA_HOME:-$HOME/.local/share}/krew"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Argument parsing and help
|
# Argument parsing and help
|
||||||
#
|
#
|
||||||
|
@ -205,7 +207,7 @@ function setup_krew() {
|
||||||
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz"
|
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz"
|
||||||
tar zxvf "${KREW}.tar.gz"
|
tar zxvf "${KREW}.tar.gz"
|
||||||
./"${KREW}" install krew
|
./"${KREW}" install krew
|
||||||
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
|
export PATH="$KREW_ROOT/bin:$PATH"
|
||||||
set +e
|
set +e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue