Merge pull request #36114 from mk46/k_completion

Updated kubectl completion configuration
pull/36205/head
Kubernetes Prow Robot 2022-08-23 15:32:04 -07:00 committed by GitHub
commit bf712dd35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ bash-completion sources all completion scripts in `/etc/bash_completion.d`.
{{< /note >}}
Both approaches are equivalent. After reloading your shell, kubectl autocompletion should be working.
To enable bash autocompletion in current session of shell, source the ~/.bashrc file:
To enable bash autocompletion in current session of shell, run `exec bash`:
```bash
source ~/.bashrc
exec bash
```