File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
content/ja/docs/tasks/tools/included Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ _build:
11
11
### はじめに
12
12
13
13
Bashにおけるkubectlの補完スクリプトは` kubectl completion bash ` コマンドで生成できます。
14
- シェル内で補完スクリプトをsourceすることでkubectlの自動補完が有効になります 。
14
+ 補完スクリプトをシェル内に読み込ませることでkubectlの自動補完が有効になります 。
15
15
16
16
ただし、補完スクリプトは[ ** bash-completion** ] ( https://github.com/scop/bash-completion ) に依存しているため、事前にインストールしておく必要があります。
17
17
@@ -71,10 +71,10 @@ brew_etc="$(brew --prefix)/etc" && [[ -r "${brew_etc}/profile.d/bash_completion.
71
71
72
72
### kubectlの自動補完を有効にする
73
73
74
- すべてのシェルセッションにてkubectlの補完スクリプトをsourceできるようにしなければなりません 。
74
+ 次に、kubectl補完スクリプトがすべてのシェルセッションで読み込まれるように設定する必要があります 。
75
75
これを行うには複数の方法があります:
76
76
77
- - 補完スクリプトを` ~/.bash_profile ` 内でsourceする :
77
+ - 補完スクリプトを` ~/.bash_profile ` 内で読み込ませる :
78
78
79
79
``` bash
80
80
echo ' source <(kubectl completion bash)' >> ~/.bash_profile
@@ -97,7 +97,7 @@ brew_etc="$(brew --prefix)/etc" && [[ -r "${brew_etc}/profile.d/bash_completion.
97
97
この場合、なにも操作する必要はありません。
98
98
99
99
{{< note > }}
100
- Homebrewでインストールしたbash-completion v2は` BASH_COMPLETION_COMPAT_DIR` ディレクトリ内のすべてのファイルをsourceするため 、後者の2つの方法が機能します。
100
+ Homebrewでインストールしたbash-completion v2は` BASH_COMPLETION_COMPAT_DIR` ディレクトリ内のすべてのファイルを読み込むため 、後者の2つの方法が機能します。
101
101
{{< /note > }}
102
102
103
103
どの場合でも、シェルをリロードしたあとに、kubectlの自動補完が機能するはずです。
You can’t perform that action at this time.
0 commit comments