summaryrefslogtreecommitdiffstats
path: root/docs/zh-CN
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2021-01-03 03:56:07 -0500
committerGitHub <noreply@github.com>2021-01-03 09:56:07 +0100
commit4cb8b1f0e891082ae1bed58f6448f3f8df21d35c (patch)
tree1359d3b0a25bc634e23cf1f4b5cac9fd44cad2e2 /docs/zh-CN
parentcfff77043e95df8b02b9f3242e42b87d0d94249a (diff)
docs(i18n): New Crowdin updates (#1941)
* New translations README.md (Spanish) * New translations README.md (Spanish) * New translations README.md (Spanish) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Italian) * New translations README.md (Arabic) * New translations README.md (Korean) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Russian) * New translations README.md (Japanese) * New translations README.md (German) * New translations README.md (Spanish) * New translations README.md (Portuguese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Spanish) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Korean) * New translations README.md (Arabic) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (French) * New translations README.md (Japanese) * New translations README.md (German) * New translations README.md (Spanish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Korean) * New translations README.md (Arabic) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (French) * New translations README.md (Japanese) * New translations README.md (German) * New translations README.md (Spanish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Italian) * New translations README.md (Korean) * New translations README.md (Arabic) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (French) * New translations README.md (Japanese) * New translations README.md (German) * New translations README.md (Spanish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Arabic) * New translations README.md (Italian) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (French) * New translations README.md (Spanish) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Russian) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Portuguese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Turkish) * New translations README.md (Russian) * New translations README.md (Russian) * New translations README.md (Russian) * New translations README.md (Italian) * New translations README.md (Korean) * New translations README.md (Arabic) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (French) * New translations README.md (Japanese) * New translations README.md (German) * New translations README.md (Spanish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (German) * New translations README.md (German) * New translations README.md (German) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Korean) * New translations README.md (Arabic) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (French) * New translations README.md (Japanese) * New translations README.md (German) * New translations README.md (Spanish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Italian) * New translations README.md (French) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Italian) * New translations README.md (Korean) * New translations README.md (Arabic) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (French) * New translations README.md (Japanese) * New translations README.md (German) * New translations README.md (Spanish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Portuguese) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Russian) * New translations README.md (Arabic) * New translations README.md (Italian) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Portuguese) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Russian) * New translations README.md (Arabic) * New translations README.md (Italian) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Portuguese) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Russian) * New translations README.md (Arabic) * New translations README.md (Italian) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Chinese Simplified) * New translations README.md (Russian) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Portuguese) * New translations README.md (Japanese) * New translations README.md (Japanese) * New translations README.md (German) * New translations README.md (German) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Spanish) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Arabic) * New translations README.md (Korean) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (Korean) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (Turkish) * New translations README.md (French) * New translations README.md (French) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Dutch) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Portuguese) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Russian) * New translations README.md (Arabic) * New translations README.md (Italian) * New translations README.md (Turkish) * New translations README.md (Polish) * New translations README.md (Korean) * New translations README.md (Dutch)
Diffstat (limited to 'docs/zh-CN')
-rw-r--r--docs/zh-CN/README.md2
-rw-r--r--docs/zh-CN/advanced-config/README.md2
-rw-r--r--docs/zh-CN/config/README.md424
-rw-r--r--docs/zh-CN/faq/README.md4
-rw-r--r--docs/zh-CN/guide/README.md12
-rw-r--r--docs/zh-CN/presets/README.md8
6 files changed, 255 insertions, 197 deletions
diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md
index 01036fa7e..9a27229af 100644
--- a/docs/zh-CN/README.md
+++ b/docs/zh-CN/README.md
@@ -94,7 +94,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Powershell
- Add the following to the end of `Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the `$PROFILE` variable in PowerShell. 对于 -Nix 来说,通常文件路径是 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 或 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`。
+ 将以下内容添加到 `Microsoft.PowerShell_profile.ps1`。 你可以在 PowerShell 通过 `$PROFILE` 变量来查询文件的位置。 对于 -Nix 来说,通常文件路径是 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 或 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`。
```sh
Invoke-Expression (&starship init powershell)
diff --git a/docs/zh-CN/advanced-config/README.md b/docs/zh-CN/advanced-config/README.md
index 7d5738bbf..fc5a0020f 100644
--- a/docs/zh-CN/advanced-config/README.md
+++ b/docs/zh-CN/advanced-config/README.md
@@ -82,7 +82,7 @@ starship_precmd_user_func="set_win_title"
`<color>` 是颜色说明符(下面解释)。 `fg:<color>` 和 `<color>` 当前产生一样的效果,尽管未来可能会改变。 字符串中的单词顺序不影响显示结果。
-`none` 标识符会覆盖字符串中所有其他标识符,比如 `fg:red none fg:blue` 将创建一个没有样式设置的字符串。 未来可能会将 `none` 与其它标识符一起使用视为一种错误。
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
颜色说明符可以是以下内容之一:
diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md
index 8c10fe187..c2c21a262 100644
--- a/docs/zh-CN/config/README.md
+++ b/docs/zh-CN/config/README.md
@@ -51,7 +51,7 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
**组件(Module)**:提示符的组成部分,通过来自系统的上下文信息向用户显示各种信息。 比如“nodejs”组件会在当前目录是一个 NodeJS 项目时显示您当前安装的 NodeJS 版本。
-**Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS.
+**Variable**: Smaller sub-components that contain information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS.
By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix.
@@ -197,6 +197,7 @@ $golang\
$helm\
$java\
$julia\
+$kotlin\
$nim\
$nodejs\
$ocaml\
@@ -217,8 +218,8 @@ $gcloud\
$openstack\
$env_var\
$crystal\
-$cmd_duration\
$custom\
+$cmd_duration\
$line_break\
$lua\
$jobs\
@@ -302,26 +303,17 @@ symbol = "🅰 "
### 配置项
-| Option | 默认值 | 描述 |
-| -------------------- | --------------------------------- | ---------------- |
-| `full_symbol` | `"•"` | 显示于电池充满时。 |
-| `charging_symbol` | `"⇡"` | 显示于正在充电时。 |
-| `discharging_symbol` | `"⇣"` | 显示于电池放电时。 |
-| `format` | `"[$symbol$percentage]($style) "` | 组件格式化模板。 |
-| `display` | [见下文](#battery-display) | 电量显示阈值和样式。 |
-| `disabled` | `false` | 禁用 `battery` 组件。 |
-
-<details>
-<summary>也有一些给不常见的电源状态设立的字段。</summary>
-
-| 字段 | 描述 |
-| ---------------- | ---------- |
-| `unknown_symbol` | 显示于电池状态未知时 |
-| `empty_symbol` | 显示于电池状态为空时 |
+| Option | 默认值 | 描述 |
+| -------------------- | --------------------------------- | --------------------------------------------------- |
+| `full_symbol` | `""` | 显示于电池充满时。 |
+| `charging_symbol` | `""` | 显示于正在充电时。 |
+| `discharging_symbol` | `""` | 显示于电池放电时。 |
+| `unknown_symbol` | `""` | The symbol shown when the battery state is unknown. |
+| `empty_symbol` | `""` | The symbol shown when the battery state is empty. |
+| `format` | `"[$symbol$percentage]($style) "` | 组件格式化模板。 |
+| `display` | [见下文](#battery-display) | Display threshold and style for the module. |
+| `disabled` | `false` | Disables the `battery` module. |
-注意:如果状态为 `unknown` 或 `empty`,电池指示器将被隐藏,除非您在配置中指定相关选项。
-
-</details>
### 示例
@@ -336,7 +328,7 @@ discharging_symbol = "💀"
### Battery 组件的显示
-`display` 选项用于定义电池指示器的显示阈值(threshold)和显示效果(style)。 如果 `display` 没有设置, 默认设置如下:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. 默认设置如下:
```toml
[[battery.display]]
@@ -346,12 +338,12 @@ style = "bold red"
#### 配置项
-`display` 字段的子字段如下:
+The `display` option is an array of the following table.
-| Option | 描述 |
-| ----------- | ---------------- |
-| `threshold` | 当前显示设置的电量上限(见示例) |
-| `style` | 若组件被显示,则使用此样式 |
+| Option | 描述 |
+| ----------- | ----------------------------------------------- |
+| `threshold` | The upper bound for the display option. |
+| `style` | The style used if the display option is in use. |
#### 示例
@@ -370,9 +362,9 @@ style = "bold yellow"
## Character
-`character` 组件用于在您输入终端的文本旁显示一个字符(通常是一个箭头)。
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-这个字符可以告诉您最后一个命令是否执行成功。 It can do this in two ways:
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- changing color (`red`/`green`)
- changing shape (`❯`/`✖`)
@@ -387,7 +379,7 @@ By default it only changes color. If you also want to change it's shape take a l
| `success_symbol` | `"[❯](bold green)"` | The format string used before the text input if the previous command succeeded. |
| `error_symbol` | `"[❯](bold red)"` | The format string used before the text input if the previous command failed. |
| `vicmd_symbol` | `"[❮](bold green)"` | The format string used before the text input if the shell is in vim normal mode. |
-| `disabled` | `false` | 禁用 `character` 组件。 |
+| `disabled` | `false` | Disables the `character` module. |
### Variables
@@ -454,27 +446,27 @@ The `cmake` module shows the currently installed version of CMake if any of the
## Command Duration
-`cmd_duration` 组件显示上一个命令执行的时间。 此组件只在命令执行时间长于两秒时显示,或者当其 `min_time` 字段被设置时,按此值为执行时间的显示下限。
+The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
-::: warning 不要在 Bash 里捕获 DEBUG 信号
+::: warning Do not hook the DEBUG trap in Bash
-如果您正在 `bash` 上使用 Starship,在运行 `eval $(starship)` 后,不要捕获 `DEBUG` 信号,否则此组件**将会**坏掉。
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
:::
-需要在自动每一条命令前执行某些操作的 Bash 用户可以使用 [rcaloras 的 bash_preexec 框架](https://github.com/rcaloras/bash-preexec)。 只需要在执行 `eval $(starship init $0)` 前简单地定义 `preexec_functions` 和 `precmd_functions` 两个列表,就可以照常运行了。
+Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
### 配置项
-| Option | 默认值 | 描述 |
-| -------------------- | ----------------------------- | ----------------------------------------------------- |
-| `min_time` | `2_000` | 显示此组件所需的最短执行时长(单位:毫秒)。 |
-| `show_milliseconds` | `false` | 除了秒数外在执行时长中额外显示毫秒。 |
-| `format` | `"took [$duration]($style) "` | 组件格式化模板。 |
-| `style` | `"bold yellow"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `cmd_duration` 组件。 |
-| `show_notifications` | `false` | Show desktop notifications when command completes. |
-| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
+| Option | 默认值 | 描述 |
+| -------------------- | ----------------------------- | ---------------------------------------------------------- |
+| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
+| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
+| `format` | `"took [$duration]($style) "` | 组件格式化模板。 |
+| `style` | `"bold yellow"` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `cmd_duration` module. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
::: tip
@@ -513,14 +505,14 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
### 配置项
-| Option | 默认值 | 描述 |
-| ------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
-| `truncation_length` | `1` | 如果这个 conda 环境是通过 `conda create -p [path]` 创建的,环境路径的目录深度应该被截断到此数量。 `0` 表示不用截断。 另请参阅 [`directory`](#directory) 组件。 |
-| `symbol` | `"🅒 "` | 在环境名之前显示的符号。 |
-| `style` | `"bold green"` | 此组件的样式。 |
-| `format` | `"[$symbol$environment]($style) "` | 组件格式化模板。 |
-| `ignore_base` | `true` | Ignores `base` environment when activated. |
-| `disabled` | `false` | 禁用 `conda` 组件。 |
+| Option | 默认值 | 描述 |
+| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
+| `symbol` | `"🅒 "` | The symbol used before the environment name. |
+| `style` | `"bold green"` | 此组件的样式。 |
+| `format` | `"via [$symbol$environment]($style) "` | 组件格式化模板。 |
+| `ignore_base` | `true` | Ignores `base` environment when activated. |
+| `disabled` | `false` | Disables the `conda` module. |
### Variables
@@ -543,7 +535,7 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
-The `crystal` module shows the currently installed version of Crystal. The module will be shown if any of the following conditions are met:
+The `crystal` module shows the currently installed version of Crystal. 此组件将在符合以下任意条件之一时显示:
- 当前目录包含一个 `shard.yml` 文件
- The current directory contains a `.cr` file
@@ -578,7 +570,7 @@ format = "via [✨ $version](bold blue) "
## Dart
-The `dart` module shows the currently installed version of Dart. The module will be shown if any of the following conditions are met:
+The `dart` module shows the currently installed version of Dart. 此组件将在符合以下任意条件之一时显示:
- The current directory contains a file with `.dart` extension
- The current directory contains a `.dart_tool` directory
@@ -622,25 +614,25 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
### 配置项
-| Option | 默认值 | 描述 |
-| ------------------- | -------------------------------------------------- | ----------------------------------------------------- |
-| `truncation_length` | `3` | 当前目录路径被截断后最多保留的父目录数量。 |
-| `truncate_to_repo` | `true` | 是否只截断到您当前处于的 git 仓库根目录下。 |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | 组件格式化模板。 |
-| `style` | `"bold cyan"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `directory` 组件。 |
-| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
-| `read_only_style` | `"red"` | The style for the read only symbol. |
-| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
+| Option | 默认值 | 描述 |
+| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
+| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
+| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | 组件格式化模板。 |
+| `style` | `"bold cyan"` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `directory` module. |
+| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
+| `read_only_style` | `"red"` | The style for the read only symbol. |
+| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
<details>
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
-| Advanced Option | 默认值 | 描述 |
-| --------------------------- | ------ | ------------------------------------------------ |
-| `substitutions` | | A table of substitutions to be made to the path. |
-| `fish_style_pwd_dir_length` | `0` | 使用 fish shell 当前目录路径逻辑时每个省略目录名使用的字符数。 |
-| `use_logical_path` | `true` | 显示由 shell 提供的逻辑路径(`PWD`)而不是 OS 提供的路径。 |
+| Advanced Option | 默认值 | 描述 |
+| --------------------------- | ------ | ---------------------------------------------------------------------------------------- |
+| `substitutions` | | A table of substitutions to be made to the path. |
+| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. |
+| `use_logical_path` | `true` | Displays the logical path provided by the shell (`PWD`) instead of the path from the OS. |
`substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD.
@@ -730,13 +722,13 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft.
### 配置项
-| Option | 默认值 | 描述 |
-| ----------- | ---------------------------------------- | ------------------------------ |
-| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | 组件格式化模板。 |
-| `symbol` | `"•NET "` | 这个字段的内容会显示在当前 .NET 版本之前。 |
-| `heuristic` | `true` | 使用更快的版本探测机制以保证 starship 的运行速度。 |
-| `style` | `"bold blue"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `dotnet` 组件。 |
+| Option | 默认值 | 描述 |
+| ----------- | --------------------------------------- | -------------------------------------------------------- |
+| `format` | `"[$symbol$version( 🎯 $tfm)]($style) "` | 组件格式化模板。 |
+| `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. |
+| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
+| `style` | `"bold blue"` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `dotnet` module. |
### Variables
@@ -762,7 +754,7 @@ heuristic = false
## Elixir
-The `elixir` module shows the currently installed version of Elixir and Erlang/OTP. The module will be shown if any of the following conditions are met:
+The `elixir` module shows the currently installed version of Elixir and Erlang/OTP. 此组件将在符合以下任意条件之一时显示:
- 当前目录包含一个 `mix.exs` 文件.
@@ -797,7 +789,7 @@ symbol = "🔮 "
## Elm
-The `elm` module shows the currently installed version of Elm. The module will be shown if any of the following conditions are met:
+The `elm` module shows the currently installed version of Elm. 此组件将在符合以下任意条件之一时显示:
- 当前目录包含一个 `elm.json` 文件
- 当前目录包含 `elm-package.json` 文件
@@ -842,13 +834,13 @@ The `env_var` module displays the current value of a selected environment variab
### 配置项
-| Option | 默认值 | 描述 |
-| ---------- | ------------------------------ | ------------------- |
-| `symbol` | | 这个字段的内容会显示在环境变量值之前。 |
-| `variable` | | 要显示的环境变量。 |
-| `default` | | 所选变量未定义时显示的默认值。 |
-| `format` | `"with [$env_value]($style) "` | 组件格式化模板。 |
-| `disabled` | `false` | 禁用 `env_var` 组件。 |
+| Option | 默认值 | 描述 |
+| ---------- | ------------------------------ | ---------------------------------------------------------------------------- |
+| `symbol` | | The symbol used before displaying the variable value. |
+| `variable` | | The environment variable to be displayed. |
+| `default` | | The default value to be displayed when the selected variable is not defined. |
+| `format` | `"with [$env_value]($style) "` | 组件格式化模板。 |
+| `disabled` | `false` | Disables the `env_var` module. |
### Variables
@@ -872,7 +864,7 @@ default = "unknown shell"
## Erlang
-The `erlang` module shows the currently installed version of Erlang/OTP. The module will be shown if any of the following conditions are met:
+The `erlang` module shows the currently installed version of Erlang/OTP. 此组件将在符合以下任意条件之一时显示:
- 当前目录包含一个 `rebar.config` 文件.
- 当前目录包含一个 `erlang.mk` 文件.
@@ -971,25 +963,26 @@ The `git_branch` module shows the active branch of the repo in your current dire
### 配置项
-| Option | 默认值 | 描述 |
-| -------------------- | -------------------------------- | ------------------------------------------------------------------------------------ |
-| `always_show_remote` | `false` | Shows the remote tracking branch name, even if it is equal to the local branch name. |
-| `format` | `"on [$symbol$branch]($style) "` | 组件格式化模板。 Use `"$branch"` to refer to the current branch name. |
-| `symbol` | `" "` | A format string representing the symbol of git branch. |
-| `style` | `"bold purple"` | 此组件的样式。 |
-| `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes. |
-| `truncation_symbol` | `"…"` | 此字段的内容用来表示分支名称被截断。 You can use `""` for no symbol. |
-| `only_attached` | `false` | Only show the branch name when not in a detached HEAD state. |
-| `disabled` | `false` | Disables the `git_branch` module. |
+| Option | 默认值 | 描述 |
+| -------------------- | -------------------------------- | ---------------------------------------------------------------------------------------- |
+| `always_show_remote` | `false` | Shows the remote tracking branch name, even if it is equal to the local branch name. |
+| `format` | `"on [$symbol$branch]($style) "` | 组件格式化模板。 Use `"$branch"` to refer to the current branch name. |
+| `symbol` | `" "` | A format string representing the symbol of git branch. |
+| `style` | `"bold purple"` | 此组件的样式。 |
+| `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes. |
+| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. You can use `""` for no symbol. |
+| `only_attached` | `false` | Only show the branch name when not in a detached HEAD state. |
+| `disabled` | `false` | Disables the `git_branch` module. |
### Variables
-| 字段 | 示例 | 描述 |
-| --------- | -------- | ---------------------------------------------------------------------------------------------------- |
-| branch | `master` | The current branch name, falls back to `HEAD` if there's no current branch (e.g. git detached HEAD). |
-| remote | `master` | The remote branch name. |
-| symbol | | `symbol`对应值 |
-| style\* | | `style`对应值 |
+| 字段 | 示例 | 描述 |
+| ------------- | -------- | ---------------------------------------------------------------------------------------------------- |
+| branch | `master` | The current branch name, falls back to `HEAD` if there's no current branch (e.g. git detached HEAD). |
+| remote_name | `origin` | The remote name. |
+| remote_branch | `master` | The name of the branch tracked on `remote_name`. |
+| symbol | | `symbol`对应值 |
+| style\* | | `style`对应值 |
\*: This variable can only be used as a part of a style string
@@ -1012,7 +1005,7 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
| Option | 默认值 | 描述 |
| -------------------- | ------------------------------------------------------ | ----------------------------------------------------- |
-| `commit_hash_length` | `7` | 显示的 git 提交哈希值的长度。 |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | 组件格式化模板。 |
| `style` | `"bold green"` | 此组件的样式。 |
| `only_detached` | `true` | Only show git commit hash when in detached HEAD state |
@@ -1056,7 +1049,7 @@ The `git_state` module will show in directories which are part of a git reposito
| `am_or_rebase` | `"AM/REBASE"` | A format string displayed when an ambiguous `apply-mailbox` or `rebase` is in progress. |
| `style` | `"bold yellow"` | 此组件的样式。 |
| `format` | `'\([$state( $progress_current/$progress_total)]($style)\) '` | 组件格式化模板。 |
-| `disabled` | `false` | 禁用 `git_state` 模块 |
+| `disabled` | `false` | Disables the `git_state` module. |
### Variables
@@ -1088,7 +1081,7 @@ The `git_status` module shows symbols representing the state of the repo in your
| Option | 默认值 | 描述 |
| ------------ | ----------------------------------------------- | ----------------------------------- |
| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
-| `conflicted` | `"="` | 这个分支有合并冲突。 |
+| `conflicted` | `"="` | This branch has merge conflicts. |
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
@@ -1099,7 +1092,7 @@ The `git_status` module shows symbols representing the state of the repo in your
| `renamed` | `"»"` | The format of `renamed` |
| `deleted` | `"✘"` | The format of `deleted` |
| `style` | `"bold red"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `git_status` 组件。 |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
@@ -1129,9 +1122,9 @@ The following variables can be used in `diverged`:
The following variables can be used in `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` and `deleted`:
-| 字段 | 描述 |
-| ------- | --------- |
-| `count` | 显示相应的文件数量 |
+| 字段 | 描述 |
+| ------- | ------------------------ |
+| `count` | Show the number of files |
### 示例