From 87ef86b8f2e2613c8a53f94a85cef753a0679092 Mon Sep 17 00:00:00 2001 From: towfeeqfayaz11 Date: Mon, 15 Aug 2022 23:17:39 +0900 Subject: [PATCH] Fixes Issue mentioned here: https://github.com/kubernetes/website/issues/35931 Adding functionality for bash autocompletion in current session --- .../tools/included/optional-kubectl-configs-bash-linux.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/docs/tasks/tools/included/optional-kubectl-configs-bash-linux.md b/content/en/docs/tasks/tools/included/optional-kubectl-configs-bash-linux.md index 10e5d0c3e54..2bda1de17ea 100644 --- a/content/en/docs/tasks/tools/included/optional-kubectl-configs-bash-linux.md +++ b/content/en/docs/tasks/tools/included/optional-kubectl-configs-bash-linux.md @@ -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 +```