Adding functionality for bash autocompletion in current session
pull/35979/head
towfeeqfayaz11 2022-08-15 23:17:39 +09:00
parent 4b77bee45c
commit 87ef86b8f2
1 changed files with 4 additions and 0 deletions

View File

@ -51,3 +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:
```bash
source ~/.bashrc
```