diff options
Diffstat (limited to 'docs/zh-CN')
-rw-r--r-- | docs/zh-CN/README.md | 18 | ||||
-rw-r--r-- | docs/zh-CN/advanced-config/README.md | 28 | ||||
-rw-r--r-- | docs/zh-CN/config/README.md | 869 | ||||
-rw-r--r-- | docs/zh-CN/faq/README.md | 8 | ||||
-rw-r--r-- | docs/zh-CN/guide/README.md | 12 | ||||
-rw-r--r-- | docs/zh-CN/presets/gruvbox-rainbow.md | 2 | ||||
-rw-r--r-- | docs/zh-CN/presets/nerd-font.md | 6 | ||||
-rw-r--r-- | docs/zh-CN/presets/tokyo-night.md | 2 |
8 files changed, 484 insertions, 461 deletions
diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md index 316497e05..4ce164ea3 100644 --- a/docs/zh-CN/README.md +++ b/docs/zh-CN/README.md @@ -2,23 +2,23 @@ home: true heroImage: /logo.svg heroText: -tagline: 轻量、迅速、可无限定制的高颜值终端! +tagline: 轻量、迅速、客制化的高颜值终端! actionText: 快速上手 → actionLink: ./guide/ features: - title: 兼容性优先 - details: Starship 可以在各种常见的操作系统和常见的 shell 上运行。 尝试着在各种地方使用它吧! + details: Starship 可以在常见的操作系统和 shell 上运行。 尝试着在各种地方使用它吧! - - title: 使用 Rust 编写 - details: 具有 Rust 独树一帜的速度与安全性,使你的提示符尽可能的快速可靠。 + title: 基于 Rust + details: Rust 特有的的速度与安全性,让你的提示尽可能的快速可靠。 - - title: 可自定义 - details: 每个小细节都可以按您喜欢的自定义,不论是最小化以求速度,还是最大化以获得最完善的功能。 -footer: ISC 许可 | 版权所有 © 2019 - 目前 Starship 贡献者 + title: 客制化 + details: 每个小细节都可以按您喜欢的客制化,不论是最小化以求速度,还是更大以获得最完善的功能。 +footer: ISC 许可 | 版权所有 © 2019至今 - Starship 贡献者 #Used for the description meta tag, for SEO metaTitle: "Starship:可用于各种 Shell 的提示符" -description: Starship是一款轻量级、反应迅速、可自定义的高颜值终端! 只显示所需要的信息,将优雅和轻量化合二为一。 可以为Bash、Fish、ZSH、Ion、Tcsh、Elvish、Nu、Xonsh、Cmd和PowerShell执行快速安装。 +description: Starship是一款轻量、迅速、可客制化的高颜值终端! 只显示所需要的信息,将优雅和轻量化合二为一。 可以为Bash、Fish、ZSH、Ion、Tcsh、Elvish、Nu、Xonsh、Cmd和PowerShell执行快速安装。 --- <div class="center"> @@ -162,7 +162,7 @@ description: Starship是一款轻量级、反应迅速、可自定义的高颜 然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容: ```sh - 使用 ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` diff --git a/docs/zh-CN/advanced-config/README.md b/docs/zh-CN/advanced-config/README.md index 0ef535d66..e4afa3ff9 100644 --- a/docs/zh-CN/advanced-config/README.md +++ b/docs/zh-CN/advanced-config/README.md @@ -58,9 +58,9 @@ load(io.popen('starship init cmd'):read("*a"))() 可以用自定义字符串替换预设的命令行提示。 这在不经常需要所有提示信息的情况下很有用。 若要启用该功能,请在 shell 中运行 `Enable-TransitientPrompt`命令 若要永久启用该功能,请将 上述语句放在您的 `~/.config/fish/config.fish` 中。 通过在shell中运行 `Disable-TransientPrompt`命令来禁用这项功能。 -请注意,对于Fish,命令行提示只在命令行非空 和语法正确的情况下才会显示。 +请注意,对于Fish,命令行提示只在命令行非空 且语法正确的情况下才会显示。 -- 默认情况下,输入的左侧是 粗体绿色的❯</code>符号。 要自定义它,请定义一个新函数,名为 `Invoke-Starship-TransitentFunction`。 例如,要 在这里显示Starship的 `character` 模块,您需要如下操作: +- 默认情况下,输入的左侧是 粗体绿色的`❯`符号。 要自定义它,请定义一个新函数,名为 `Invoke-Starship-TransitentFunction`。 例如,要在这里显示 Starship 的 `character` 组件,您需要如下操作: ```fish function starship_transent_rmpt_func @@ -80,6 +80,26 @@ starship init fish | source enable_transience ``` +## TransientPrompt and TransientRightPrompt in Bash + +The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=<value>`: + +The \<value\> here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored. + +Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right: + +- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do + +```bash +bleopt prompt_ps1_final="$(starship module character)" +``` + +- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. 例如,要在这里显示 最后一个命令开始的时间,您需要如下操作: + +```bash +bleopt prompt_rps1_final="$(starship module time)" +``` + ## 在 Cmd 中自定义提示符显示前和执行前的命令 Clink 提供了很灵活的 API,能在 Cmd shell 中运行预提示和执行前命令。 在 Starship 中使用这些 API 很容易。 对你的 `starship.lua` 按需做出如下修改: @@ -205,7 +225,9 @@ Invoke-Expression (&starship init powershell) 注意:右侧提示和输入区显示在同一行。 如果需要在输入区的上方显示右对齐的组件,请查阅 [`fill` 组件](/config/#fill)。 -`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell. +`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash. + +Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash. ### 示例 diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md index b41d3714e..ceb6bc6f8 100644 --- a/docs/zh-CN/config/README.md +++ b/docs/zh-CN/config/README.md @@ -1,6 +1,6 @@ # 配置 -请为 Starship 创建配置文件 `~/.config/starship.toml`。 +为 Starship 创建配置文件 `~/.config/starship.toml`。 ```sh mkdir -p ~/.config && touch ~/.config/starship.toml @@ -16,8 +16,8 @@ Starship 的所有配置都在此 [TOML](https://github.com/toml-lang/toml) 文 add_newline = true # 将提示符中的 '❯' 替换为 '➜' -[character] # 此模块名称为 'character' -success_symbol = '[➜](bold green)' # 将 'success_symbol' 片段设置成颜色为 'bold green' 的 '➜' +[character] # 此组件名称为 'character' +success_symbol = '[➜](bold green)' # 将 'success_symbol' 字段设置成颜色为 'bold green' 的 '➜' # 禁用 'package' 组件,将其隐藏 [package] @@ -46,7 +46,7 @@ os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\star ### 日志 -默认情况下,Starship 会将警告和错误日志记录到文件 `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`. 其中 session key 与您的终端实例相对应。 不过,这也可以使用 `STARSHIP_CACHE` 环境变量来修改: +默认情况下,Starship 会将警告和错误日志记录到文件 `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`. 其中 session key 与您的终端实例相对应。 不过,也可以使用 `STARSHIP_CACHE` 环境变量来修改: ```sh export STARSHIP_CACHE=~/.starship/cache @@ -210,7 +210,7 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts'] ::: tip -If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`. +如果你有链接至网络文件系统的符号链接, 建议设置 `follow_symlinks` 为 `false` ::: @@ -340,7 +340,7 @@ $shell\ $character""" ``` -如果你只是想扩展默认的格式,你可以使用 `$all`; 你另外添加到格式中的modules不会重复出现。 例如: +如果你只是想扩展默认的格式,你可以使用 `$all`; 你另外添加到格式中的组件不会重复出现。 例如: ```toml # Move the directory to the second line @@ -388,7 +388,7 @@ When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile *: 此变量只能作为样式字符串的一部分使用 -### Examples +### 示例 #### Display everything @@ -442,12 +442,12 @@ The `azure` module shows the current Azure Subscription. This is based on showin | 字段 | 默认值 | 描述 | | ---------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------- | | `format` | `'on [$symbol($subscription)]($style) '` | The format for the Azure module to render. | -| `符号` | `' '` | The symbol used in the format. | +| `符号` | `' '` | 格式中使用的符号 | | `style` | `'blue bold'` | The style used in the format. | -| `disabled` | `true` | Disables the `azure` module. | +| `disabled` | `true` | 禁用 `azure` 组件。 | | `subscription_aliases` | `{}` | Table of subscription name aliases to display in addition to Azure subscription name. | -### Examples +### 示例 #### Display Subscription Name @@ -543,7 +543,7 @@ style = 'bold red' [[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30% threshold = 30 style = 'bold yellow' -discharging_symbol = '💦' +discharging_symbol = '💦 ' # when capacity is over 30%, the battery indicator will not be displayed ``` @@ -560,10 +560,10 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil | 选项 | 默认值 | 描述 | | ------------------- | ----------------------------------------------- | ----------------------------------------------------- | | `format` | `'with [$symbol($version )]($style)'` | The format for the `buf` module. | -| `version_format` | `'v${raw}'` | The version format. | +| `version_format` | `'v${raw}'` | 版本格式 | | `符号` | `'🐃 '` | The symbol used before displaying the version of Buf. | | `detect_extensions` | `[]` | Which extensions should trigger this module. | -| `detect_files` | `['buf.yaml', 'buf.gen.yaml', 'buf.work.yaml']` | Which filenames should trigger this module. | +| `detect_files` | `['buf.yaml', 'buf.gen.yaml', 'buf.work.yaml']` | 哪些文件应触发此组件 | | `detect_folders` | `[]` | Which folders should trigger this modules. | | `style` | `'bold blue'` | 此组件的样式。 | | `disabled` | `false` | Disables the `elixir` module. | @@ -596,24 +596,24 @@ The `bun` module shows the currently installed version of the [bun](https://bun. ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | -| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `符号` | `'🍞 '` | A format string representing the symbol of Bun. | -| `detect_extensions` | `[]` | Which extensions should trigger this module. | -| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. | -| `detect_folders` | `[]` | Which folders should trigger this module. | -| `style` | `'bold red'` | 此组件的样式。 | -| `disabled` | `false` | Disables the `bun` module. | +| 选项 | 默认值 | 描述 | +| ------------------- | ------------------------------------ | -------------------------------------------- | +| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `symbol` | `'🍞 '` | 用于表示Bun的格式化字符串 | +| `detect_extensions` | `[]` | Which extensions should trigger this module. | +| `detect_files` | `['bun.lockb', 'bunfig.toml']` | 哪些文件应触发此组件 | +| `detect_folders` | `[]` | 那些文件夹应该触发此组件 | +| `style` | `'bold red'` | 此组件的样式。 | +| `disabled` | `false` | 禁用`bun`组件 | ### 变量 -| 字段 | 示例 | 描述 | -| --------- | -------- | -------------------- | -| version | `v0.1.4` | The version of `bun` | -| 符号 | | `symbol`对应值 | -| style\* | | `style`对应值 | +| 字段 | 示例 | 描述 | +| --------- | -------- | ----------- | +| version | `v0.1.4` | `bun` 版本 | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | *: 此变量只能作为样式字符串的一部分使用 @@ -632,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `符号` | `'C '` | The symbol used before displaying the compiler details | -| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. | -| `detect_files` | `[]` | Which filenames should trigger this module. | -| `detect_folders` | `[]` | Which folders should trigger this module. | -| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is | -| `style` | `'bold 149'` | 此组件的样式。 | -| `disabled` | `false` | Disables the `c` module. | +| 选项 | 默认值 | 描述 | +| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------ | +| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `符号` | `'C '` | The symbol used before displaying the compiler details | +| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. | +| `detect_files` | `[]` | 哪些文件应触发此组件 | +| `detect_folders` | `[]` | 那些文件夹应该触发此组件 | +| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is | +| `style` | `'bold 149'` | 此组件的样式。 | +| `disabled` | `false` | Disables the `c` module. | ### 变量 @@ -708,7 +708,7 @@ By default it only changes color. If you also want to change its shape take a lo | -- | -- | -------------------------------------------------------------------------------------------------------- | | 符号 | | A mirror of either `success_symbol`, `error_symbol`, `vimcmd_symbol` or `vimcmd_replace_one_symbol` etc. | -### Examples +### 示例 #### With custom error shape @@ -748,16 +748,16 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | -------------------------------------- | ------------------------------------------------------------------------- | -| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `符号` | `'△ '` | The symbol used before the version of cmake. | -| `detect_extensions` | `[]` | Which extensions should trigger this module | -| `detect_files` | `['CMakeLists.txt', 'CMakeCache.txt']` | Which filenames should trigger this module | -| `detect_folders` | `[]` | Which folders should trigger this module | -| `style` | `'bold blue'` | 此组件的样式。 | -| `disabled` | `false` | Disables the `cmake` module. | +| 选项 | 默认值 | 描述 | +| ------------------- | -------------------------------------- | -------------------------------------------- | +| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `符号` | `'△ '` | The symbol used before the version of cmake. | +| `detect_extensions` | `[]` | Which extensions should trigger this module | +| `detect_files` | `['CMakeLists.txt', 'CMakeCache.txt']` | Which filenames should trigger this module | +| `detect_folders` | `[]` | Which folders should trigger this module | +| `style` | `'bold blue'` | 此组件的样式。 | +| `disabled` | `false` | Disables the `cmake` module. | ### 变量 @@ -778,16 +778,16 @@ The `cobol` module shows the currently installed version of COBOL. By default, t ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | -| `符号` | `'⚙️ '` | The symbol used before displaying the version of COBOL. | -| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `style` | `'bold blue'` | 此组件的样式。 | -| `detect_extensions` | `['cbl', 'cob', 'CBL', 'COB']` | Which extensions should trigger this module. | -| `detect_files` | `[]` | Which filenames should trigger this module. | -| `detect_folders` | `[]` | Which folders should trigger this module. | -| `disabled` | `false` | Disables the `cobol` module. | +| 选项 | 默认值 | 描述 | +| ------------------- | ------------------------------------ | ------------------------------------------------------- | +| `符号` | `'⚙️ '` | The symbol used before displaying the version of COBOL. | +| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `style` | `'bold blue'` | 此组件的样式。 | +| `detect_extensions` | `['cbl', 'cob', 'CBL', 'COB']` | Which extensions should trigger this module. | +| `detect_files` | `[]` | 哪些文件应触发此组件 | +| `detect_folders` | `[]` | 那些文件夹应该触发此组件 | +| `disabled` | `false` | Disables the `cobol` module. | ### 变量 @@ -924,16 +924,16 @@ The `crystal` module shows the currently installed version of [Crystal](https:// ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | -| `符号` | `'🔮 '` | The symbol used before displaying the version of crystal. | -| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `style` | `'bold red'` | 此组件的样式。 | -| `detect_extensions` | `['cr']` | Which extensions should trigger this module. | -| `detect_files` | `['shard.yml']` | Which filenames should trigger this module. | -| `detect_folders` | `[]` | Which folders should trigger this module. | -| `disabled` | `false` | Disables the `crystal` module. | +| 选项 | 默认值 | 描述 | +| ------------------- | ------------------------------------ | --------------------------------------------------------- | +| `符号` | `'🔮 '` | The symbol used before displaying the version of crystal. | +| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `style` | `'bold red'` | 此组件的样式。 | +| `detect_extensions` | `['cr']` | Which extensions should trigger this module. | +| `detect_files` | `['shard.yml']` | 哪些文件应触发此组件 | +| `detect_folders` | `[]` | 那些文件夹应该触发此组件 | +| `disabled` | `false` | Disables the `crystal` module. | ### 变量 @@ -962,16 +962,16 @@ The `daml` module shows the currently used [Daml](https://www.digitalasset.com/d ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | -| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `符号` | `'Λ '` | A format string representing the symbol of Daml | -| `style` | `'bold cyan'` | 此组件的样式。 | -| `detect_extensions` | `[]` | Which extensions should trigger this module. | -| `detect_files` | `['daml.yaml']` | Which filenames should trigger this module. | -| `detect_folders` | `[]` | Which folders should trigger this module. | -| `disabled` | `false` | Disables the `daml` module. | +| 选项 | 默认值 | 描述 | +| ------------------- | ------------------------------------ | ----------------------------------------------- | +| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `符号` | `'Λ '` | A format string representing the symbol of Daml | +| `style` | `'bold cyan'` | 此组件的样式。 | +| `detect_extensions` | `[]` | Which extensions should trigger this module. | +| `detect_files` | `['daml.yaml']` | 哪些文件应触发此组件 | +| `detect_folders` | `[]` | 那些文件夹应该触发此组件 | +| `disabled` | `false` | Disables the `daml` module. | ### 变量 @@ -1002,16 +1002,16 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------- | -| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `符号` | `'🎯 '` | A format string representing the symbol of Dart | -| `detect_extensions` | `['dart']` | Which extensions should trigger this module. | -| `detect_files` | `['pubspec.yaml', 'pubspec.yml', 'pubspec.lock']` | Which filenames should trigger this module. | -| `detect_folders` | `['.dart_tool']` | Which folders should trigger this module. | -| `style` | `'bold blue'` | 此组件的样式。 | -| `disabled` | `false` | Disables the `dart` module. | +| 选项 | 默认值 | 描述 | +| ------------------- | ------------------------------------------------- | ----------------------------------------------- | +| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `符号` | `'🎯 '` | A format string representing the symbol of Dart | +| `detect_extensions` | `['dart']` | Which extensions should trigger this module. | +| `detect_files` | `['pubspec.yaml', 'pubspec.yml', 'pubspec.lock']` | 哪些文件应触发此组件 | +| `detect_folders` | `['.dart_tool']` | 那些文件夹应该触发此组件 | +| `style` | `'bold blue'` | 此组件的样式。 | +| `disabled` | `false` | Disables the `dart` module. | ### 变量 @@ -1040,16 +1040,16 @@ The `deno` module shows you your currently installed version of [Deno](https://d ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `符号` | `'🦕 '` | A format string representing the symbol of Deno | -| `detect_extensions` | `[]` | Which extensions should trigger this module. | -| `detect_files` | `['deno.json', 'deno.jsonc', 'mod.ts', 'mod.js', 'deps.ts', 'deps.js']` | Which filenames should trigger this module. | -| `detect_folders` | `[]` | Which folders should trigger this module. | -| `style` | `'green bold'` | 此组件的样式。 | -| `disabled` | `false` | Disables the `deno` module. | +| 选项 | 默认值 | 描述 | +| ------------------- | ----------------------------------------------------------------------- | ----------------------------------------------- | +| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `符号` | `'🦕 '` | A format string representing the symbol of Deno | +| `detect_extensions` | `[]` | Which extensions should trigger this module. | +| `detect_files` | `['deno.json', 'deno.jsonc', 'mod.ts', 'mod.js', 'deps.ts', 'deps.js']` | 哪些文件应触发此组件 | +| `detect_folders` | `[]` | 那些文件夹应该触发此组件 | +| `style` | `'green bold'` | 此组件的样式。 | +| `disabled` | `false` | Disables the `deno` module. | ### 变量 @@ -1162,9 +1162,10 @@ The `direnv` module shows the status of the current rc file if one is present. T | `style` | `'bold orange'` | 此组件的样式。 | | `disabled` | `true` | Disables the `direnv` module. | | `detect_extensions` | `[]` | Which extensions should trigger this module. | -| `detect_files` | `['.envrc']` | Which filenames should trigger this module. | -| `detect_folders` | `[]` | Which folders should trigger this module. | +| `detect_files` | `['.envrc']` | 哪些文件应触发此组件 | +| `detect_folders` | `[]` | 那些文件夹应该触发此组件 | | `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. | +| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. | | `denied_msg` | `'denied'` | The message displayed when an rc file is denied. | | `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. | | `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. | @@ -1249,17 +1250,17 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft. ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `format` | `'via [$symbol($version )(🎯 $tfm )]($style)'` | 组件格式化模板。 | -| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `符号` | `'.NET '` | 这个字段的内容会显示在当前 .NET 版本之前。 | -| `heuristic` | `true` | 使用更快的版本探测机制以保证 starship 的运行速度。 | -| `detect_extensions` | `['csproj', 'fsproj', 'xproj']` | Which extensions should trigger this module. | -| `detect_files` | `['global.json', 'project.json', 'Directory.Build.props', 'Directory.Build.targets', 'Packages.props']` | Which filenames should trigger this module. | -| `detect_folders` | `[]` | Which folders should trigger this modules. | -| `style` | `'bold blue'` | 此组件的样式。 | -| `disabled` | `false` | 禁用 `dotnet` 组件。 | +| 选项 | 默认值 | 描述 | +| ------------------- | ------------------------------------------------------------------------------------------------------- | -------------------------------------------- | +| `format` | `'via [$symbol($version )(🎯 $tfm )]($style)'` | 组件格式化模板。 | +| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` | +| `符号` | `'.NET '` | 这个字段的内容会显示在当前 .NET 版本之前。 | +| `heuristic` | `true` | 使用更快的版本探测机制以保证 starship 的运行速度。 | +| `detect_extensions` | `['csproj', 'fsproj', 'xproj']` | Which extensions should trigger this module. | +| `detect_files` | `['global.json', 'project.json', 'Directory.Build.props', 'Directory.Build.targets', 'Packages.props']` | 哪些文件应触发此组件 | +| `detect_folders` | `[]` | Which folders should trigger this modules. | +| `style` | `'bold blue'` | 此组件的样式。 | +| `disabled` | `false` | 禁用 `dotnet` 组件。 | ### 变量 @@ -1291,16 +1292,16 @@ The `elixir` module shows the currently installed version of [Elixir](https://el ### 配置项 -| 选项 | 默认值 | 描述 | -| ------------------- | ---------------------------- |