We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 28caaa7 + 7dcfd54 commit 06dac1bCopy full SHA for 06dac1b
content/en/docs/tasks/tools/included/optional-kubectl-configs-bash-mac.md
@@ -51,8 +51,7 @@ brew install bash-completion@2
51
As stated in the output of this command, add the following to your `~/.bash_profile` file:
52
53
```bash
54
-export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"
55
-[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
+brew_etc="$(brew --prefix)/etc" && [[ -r "${brew_etc}/profile.d/bash_completion.sh" ]] && . "${brew_etc}/profile.d/bash_completion.sh"
56
```
57
58
Reload your shell and verify that bash-completion v2 is correctly installed with `type _init_completion`.
0 commit comments