Skip to content

Commit 0e59c62

Browse files
authored
Merge pull request #35318 from yanrongshi/zh-cn]sync-optional-kubectl-configs-bash-mac
[zh-cn]sync optional-kubectl-configs-bash-mac.md
2 parents f187f6e + 94365a0 commit 0e59c62

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ headless: true
1212
<!--
1313
### Introduction
1414
-->
15-
### 简介
15+
### 简介 {#introduction}
1616

1717
<!--
1818
The kubectl completion script for Bash can be generated with `kubectl completion bash`. Sourcing this script in your shell enables kubectl completion.
@@ -33,14 +33,14 @@ bash-completion 有两个版本:v1 和 v2。v1 对应 Bash3.2(也是 macOS
3333
kubectl 的补全脚本**无法适配** bash-completion v1 和 Bash 3.2。
3434
必须为它配备 **bash-completion v2****Bash 4.1+**
3535
有鉴于此,为了在 macOS 上使用 kubectl 补全功能,你必须要安装和使用 Bash 4.1+
36-
([*说明*](https://itnext.io/upgrading-bash-on-macos-7138bd1066ba))
37-
后续说明假定你用的是 Bash 4.1+(也就是 Bash 4.1 或更新的版本)
36+
[**说明**](https://itnext.io/upgrading-bash-on-macos-7138bd1066ba)
37+
后续说明假定你用的是 Bash 4.1+(也就是 Bash 4.1 或更新的版本)
3838
{{< /warning >}}
3939

4040
<!--
4141
### Upgrade Bash
4242
-->
43-
### 升级 Bash
43+
### 升级 Bash {#upgrade-bash}
4444

4545
<!--
4646
The instructions here assume you use Bash 4.1+. You can check your Bash's version by running:
@@ -77,7 +77,7 @@ Homebrew 通常把它安装为 `/usr/local/bin/bash`。
7777
<!--
7878
### Install bash-completion
7979
-->
80-
### 安装 bash-completion
80+
### 安装 bash-completion {#install-bash-completion}
8181

8282

8383
{{< note >}}
@@ -116,7 +116,7 @@ Reload your shell and verify that bash-completion v2 is correctly installed with
116116
<!--
117117
### Enable kubectl autocompletion
118118
-->
119-
### 启用 kubectl 自动补全功能
119+
### 启用 kubectl 自动补全功能 {#enable-kubectl-autocompletion}
120120

121121
<!--
122122
You now have to ensure that the kubectl completion script gets sourced in all your shell sessions. There are multiple ways to achieve this:
@@ -156,7 +156,7 @@ You now have to ensure that the kubectl completion script gets sourced in all yo
156156
-->
157157
- 如果你是用 Homebrew 安装的 kubectl(如
158158
[此页面](/zh-cn/docs/tasks/install-with-homebrew-on-macos/#install-with-homebrew-on-macos)
159-
所描述),则kubectl 补全脚本应该已经安装到目录 `/usr/local/etc/bash_completion.d/kubectl`
159+
所描述),则 kubectl 补全脚本应该已经安装到目录 `/usr/local/etc/bash_completion.d/kubectl`
160160
中了。这种情况下,你什么都不需要做。
161161

162162
{{< note >}}

0 commit comments

Comments
 (0)