Skip to content

Commit 3382fe9

Browse files
authored
Merge pull request #36542 from Michelle951/michelle01
[zh] sync optional-kubectl-configs-bash-linux.m
2 parents c3883f9 + fb9476c commit 3382fe9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ bash-completion 负责导入 `/etc/bash_completion.d` 目录中的所有补全
9696

9797
<!--
9898
Both approaches are equivalent. After reloading your shell, kubectl autocompletion should be working.
99-
To enable bash autocompletion in current session of shell, source the ~/.bashrc file:
99+
To enable bash autocompletion in current session of shell, run `exec bash`:
100100
-->
101101
两种方式的效果相同。重新加载 Shell 后,kubectl 自动补全功能即可生效。
102-
若要在当前 Shell 会话中启用 Bash 补全功能,请导入 ~/.bashrc 文件
102+
若要在当前 Shell 会话中启用 Bash 补全功能,需要运行 `exec bash` 命令
103103

104104
```bash
105-
source ~/.bashrc
105+
exec bash
106106
```

0 commit comments

Comments
 (0)