Browse Source

Optionally load kubernetes completions

master
Paweł Płazieński 7 months ago
parent
commit
74f57b9ecf
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      zshrc

+ 5
- 0
zshrc View File

@@ -670,4 +670,9 @@ store_last_return_value() {
# This must be exactly first precmd function, because other precmd might modify $?
precmd_functions=(store_last_return_value $precmd_functions)

# If kubectl is present, load completions from it.
# This must be done after compinit was called
if [[ $commands[kubectl] ]]; then
source <(kubectl completion zsh);
fi


Loading…
Cancel
Save