@@ -12,7 +12,7 @@ headless: true
12
12
<!--
13
13
### Introduction
14
14
-->
15
- ### 简介
15
+ ### 简介 {#introduction}
16
16
17
17
<!--
18
18
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
33
33
kubectl 的补全脚本** 无法适配** bash-completion v1 和 Bash 3.2。
34
34
必须为它配备 ** bash-completion v2** 和 ** Bash 4.1+** 。
35
35
有鉴于此,为了在 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 或更新的版本)。
38
38
{{< /warning >}}
39
39
40
40
<!--
41
41
### Upgrade Bash
42
42
-->
43
- ### 升级 Bash
43
+ ### 升级 Bash {#upgrade-bash}
44
44
45
45
<!--
46
46
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`。
77
77
<!--
78
78
### Install bash-completion
79
79
-->
80
- ### 安装 bash-completion
80
+ ### 安装 bash-completion {#install-bash-completion}
81
81
82
82
83
83
{{< note >}}
@@ -116,7 +116,7 @@ Reload your shell and verify that bash-completion v2 is correctly installed with
116
116
<!--
117
117
### Enable kubectl autocompletion
118
118
-->
119
- ### 启用 kubectl 自动补全功能
119
+ ### 启用 kubectl 自动补全功能 {#enable-kubectl-autocompletion}
120
120
121
121
<!--
122
122
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
156
156
-->
157
157
- 如果你是用 Homebrew 安装的 kubectl(如
158
158
[此页面](/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`
160
160
中了。这种情况下,你什么都不需要做。
161
161
162
162
{{< note > }}
0 commit comments