From c76af1e79710dab677b31afb912d84850ed08bec Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 19 Mar 2022 13:44:04 +0100 Subject: [PATCH] Add completion for knative cli --- .zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index fddab4c..7fd1e0b 100644 --- a/.zshrc +++ b/.zshrc @@ -50,6 +50,8 @@ setopt null_glob # ZSH_AUTOSUGGEST_STRATEGY=(history completion) +export PATH=$HOME/bin:$PATH + redraw-prompt() { local precmd for precmd in $precmd_functions; do @@ -172,6 +174,11 @@ if [ ! -f "${fpath[1]}/_kapp" ]; then command -v kapp >/dev/null 2>&1 && kapp completion zsh --tty=false > "${fpath[1]}/_kapp" fi +## kn +if [ ! -f "${fpath[1]}/_kn" ]; then + command -v kn >/dev/null 2>&1 && kn completion zsh > "${fpath[1]}/_kn" +fi + ## talos cli if [ ! -f "${fpath[1]}/_talosctl" ]; then command -v talosctl >/dev/null 2>&1 && talosctl completion zsh > "${fpath[1]}/_talosctl" @@ -204,8 +211,6 @@ export PGO_APISERVER_URL='https://127.0.0.1:8443' export PGO_NAMESPACE=pgo -export PATH=$HOME/bin:$PATH - # ## Completion autoload -Uz compinit compinit -i