NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| diff --git a/contrib/completions/bash/kubectl b/contrib/completions/bash/kubectl | |
| index c096937..8bc3410 100644 | |
| --- a/contrib/completions/bash/kubectl | |
| +++ b/contrib/completions/bash/kubectl | |
| @@ -1,5 +1,10 @@ | |
| #!/bin/bash | |
| +__my_init_completion() | |
| +{ | |
| + COMPREPLY=() |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].