Skip to content

Commit 762ede8

Browse files
authored
Merge pull request #35979 from towfeeqfayaz11/bash-autocompletion-fix-updated
Enable AutoCompletion in Current Session of Bash
2 parents 263fc03 + 87ef86b commit 762ede8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/en/docs/tasks/tools/included/optional-kubectl-configs-bash-linux.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ bash-completion sources all completion scripts in `/etc/bash_completion.d`.
5151
{{< /note >}}
5252

5353
Both approaches are equivalent. After reloading your shell, kubectl autocompletion should be working.
54+
To enable bash autocompletion in current session of shell, source the ~/.bashrc file:
55+
```bash
56+
source ~/.bashrc
57+
```

0 commit comments

Comments
 (0)