Skip to content

Commit b1ca7a8

Browse files
authored
Merge pull request #39658 from Arhell/es-fix
[es] Fix homebrew prefix error in bash-completion of kubectl
2 parents b4f737e + ba9ad02 commit b1ca7a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

content/es/docs/tasks/tools/included/optional-kubectl-configs-bash-mac.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ brew install bash-completion@2
5050
Como se indica en el resultado de este comando, agregue lo siguiente a su archivo `~/.bash_profile`:
5151

5252
```bash
53-
export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"
54-
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
53+
brew_etc="$(brew --prefix)/etc" && [[ -r "${brew_etc}/profile.d/bash_completion.sh" ]] && . "${brew_etc}/profile.d/bash_completion.sh"
5554
```
5655

5756
Vuelva a cargar su shell y verifique que bash-complete v2 esté instalado correctamente con `type _init_completion`.

0 commit comments

Comments
 (0)