Switch language name 'zh' to 'zh-cn'
This is the first step to rename 'zh' to 'zh-cn'. There are several reasons why we rename the language name.
- The upstream docsy theme changed the language name, leading to many warnings during site build;
The side-effect is that the i18n strings are no longer working.
- We believe renaming the language is the right thing to do, because this move can make room for other variants of Chinese language, such as 'zh-tw', 'zh-sg' etc.
There would be several follow-ups to this PR, such as fixing the intra-site links, adding redirects etc.
We will lock up changes to zh/zh-cn pages for the moment, until this one gets in.
This PR is based on commit cdad0a7342.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
---
|
||||
title: "PowerShell 自动补全"
|
||||
description: "powershell 自动补全的一些可选配置。"
|
||||
headless: true
|
||||
---
|
||||
<!--
|
||||
---
|
||||
title: "PowerShell auto-completion"
|
||||
description: "Some optional configuration for powershell auto-completion."
|
||||
headless: true
|
||||
---
|
||||
-->
|
||||
|
||||
<!--
|
||||
The kubectl completion script for PowerShell can be generated with the command `kubectl completion powershell`.
|
||||
|
||||
To do so in all your shell sessions, add the following line to your `$PROFILE` file:
|
||||
-->
|
||||
使用命令 `kubectl completion powershell` 生成 PowerShell 的 kubectl 自动补全脚本。
|
||||
|
||||
如果需要自动补全在所有 shell 会话中生效,请将以下命令添加到 `$PROFILE` 文件中:
|
||||
|
||||
```powershell
|
||||
kubectl completion powershell | Out-String | Invoke-Expression
|
||||
```
|
||||
|
||||
<!--
|
||||
This command will regenerate the auto-completion script on every PowerShell start up. You can also add the generated script directly to your `$PROFILE` file.
|
||||
-->
|
||||
此命令将在每次 PowerShell 启动时重新生成自动补全脚本。你还可以将生成的自动补全脚本添加到 `$PROFILE` 文件中。
|
||||
|
||||
<!--
|
||||
To add the generated script to your `$PROFILE` file, run the following line in your powershell prompt:
|
||||
-->
|
||||
如果需要将自动补全脚本直接添加到 `$PROFILE` 文件中,请在 PowerShell 终端运行以下命令:
|
||||
|
||||
```powershell
|
||||
kubectl completion powershell >> $PROFILE
|
||||
```
|
||||
|
||||
<!--
|
||||
After reloading your shell, kubectl autocompletion should be working.
|
||||
-->
|
||||
完成上述操作后重启 shell,kubectl的自动补全就可以工作了。
|
||||
Reference in New Issue
Block a user