docs(i18n): new Crowdin updates (#6141)

* New translations gruvbox-rainbow.md (Dutch)

* New translations jetpack.md (Dutch)

* New translations readme.md (Norwegian)

* New translations bracketed-segments.md (Norwegian)

* New translations nerd-font.md (Norwegian)

* New translations no-runtimes.md (Norwegian)

* New translations plain-text.md (Norwegian)

* New translations pure-preset.md (Norwegian)

* New translations pastel-powerline.md (Norwegian)

* New translations no-nerd-font.md (Norwegian)

* New translations no-empty-icons.md (Norwegian)

* New translations tokyo-night.md (Norwegian)

* New translations gruvbox-rainbow.md (Norwegian)

* New translations jetpack.md (Norwegian)

* New translations readme.md (Polish)

* New translations bracketed-segments.md (Polish)

* New translations nerd-font.md (Polish)

* New translations no-runtimes.md (Polish)

* New translations plain-text.md (Polish)

* New translations pure-preset.md (Polish)

* New translations pastel-powerline.md (Polish)

* New translations no-nerd-font.md (Polish)

* New translations no-empty-icons.md (Polish)

* New translations tokyo-night.md (Polish)

* New translations gruvbox-rainbow.md (Polish)

* New translations jetpack.md (Polish)

* New translations readme.md (Portuguese)

* New translations bracketed-segments.md (Portuguese)

* New translations nerd-font.md (Portuguese)

* New translations no-runtimes.md (Portuguese)

* New translations plain-text.md (Portuguese)

* New translations pure-preset.md (Portuguese)

* New translations pastel-powerline.md (Portuguese)

* New translations no-nerd-font.md (Portuguese)

* New translations no-empty-icons.md (Portuguese)

* New translations tokyo-night.md (Portuguese)

* New translations gruvbox-rainbow.md (Portuguese)

* New translations jetpack.md (Portuguese)

* New translations readme.md (Russian)

* New translations bracketed-segments.md (Russian)

* New translations nerd-font.md (Russian)

* New translations no-runtimes.md (Russian)

* New translations plain-text.md (Russian)

* New translations pure-preset.md (Russian)

* New translations pastel-powerline.md (Russian)

* New translations no-nerd-font.md (Russian)

* New translations no-empty-icons.md (Russian)

* New translations tokyo-night.md (Russian)

* New translations gruvbox-rainbow.md (Russian)

* New translations jetpack.md (Russian)

* New translations readme.md (Turkish)

* New translations bracketed-segments.md (Turkish)

* New translations nerd-font.md (Turkish)

* New translations no-runtimes.md (Turkish)

* New translations plain-text.md (Turkish)

* New translations pure-preset.md (Turkish)

* New translations pastel-powerline.md (Turkish)

* New translations no-nerd-font.md (Turkish)

* New translations no-empty-icons.md (Turkish)

* New translations tokyo-night.md (Turkish)

* New translations gruvbox-rainbow.md (Turkish)

* New translations jetpack.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations bracketed-segments.md (Ukrainian)

* New translations nerd-font.md (Ukrainian)

* New translations no-runtimes.md (Ukrainian)

* New translations plain-text.md (Ukrainian)

* New translations pure-preset.md (Ukrainian)

* New translations pastel-powerline.md (Ukrainian)

* New translations no-nerd-font.md (Ukrainian)

* New translations no-empty-icons.md (Ukrainian)

* New translations tokyo-night.md (Ukrainian)

* New translations gruvbox-rainbow.md (Ukrainian)

* New translations jetpack.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations bracketed-segments.md (Chinese Simplified)

* New translations nerd-font.md (Chinese Simplified)

* New translations no-runtimes.md (Chinese Simplified)

* New translations plain-text.md (Chinese Simplified)

* New translations pure-preset.md (Chinese Simplified)

* New translations pastel-powerline.md (Chinese Simplified)

* New translations no-nerd-font.md (Chinese Simplified)

* New translations no-empty-icons.md (Chinese Simplified)

* New translations tokyo-night.md (Chinese Simplified)

* New translations gruvbox-rainbow.md (Chinese Simplified)

* New translations jetpack.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations bracketed-segments.md (Chinese Traditional)

* New translations nerd-font.md (Chinese Traditional)

* New translations no-runtimes.md (Chinese Traditional)

* New translations plain-text.md (Chinese Traditional)

* New translations pure-preset.md (Chinese Traditional)

* New translations pastel-powerline.md (Chinese Traditional)

* New translations no-nerd-font.md (Chinese Traditional)

* New translations no-empty-icons.md (Chinese Traditional)

* New translations tokyo-night.md (Chinese Traditional)

* New translations gruvbox-rainbow.md (Chinese Traditional)

* New translations jetpack.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations bracketed-segments.md (Vietnamese)

* New translations nerd-font.md (Vietnamese)

* New translations no-runtimes.md (Vietnamese)

* New translations plain-text.md (Vietnamese)

* New translations pure-preset.md (Vietnamese)

* New translations pastel-powerline.md (Vietnamese)

* New translations no-nerd-font.md (Vietnamese)

* New translations no-empty-icons.md (Vietnamese)

* New translations tokyo-night.md (Vietnamese)

* New translations gruvbox-rainbow.md (Vietnamese)

* New translations jetpack.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations bracketed-segments.md (Portuguese, Brazilian)

* New translations nerd-font.md (Portuguese, Brazilian)

* New translations no-runtimes.md (Portuguese, Brazilian)

* New translations plain-text.md (Portuguese, Brazilian)

* New translations pure-preset.md (Portuguese, Brazilian)

* New translations pastel-powerline.md (Portuguese, Brazilian)

* New translations no-nerd-font.md (Portuguese, Brazilian)

* New translations no-empty-icons.md (Portuguese, Brazilian)

* New translations tokyo-night.md (Portuguese, Brazilian)

* New translations gruvbox-rainbow.md (Portuguese, Brazilian)

* New translations jetpack.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations bracketed-segments.md (Indonesian)

* New translations nerd-font.md (Indonesian)

* New translations no-runtimes.md (Indonesian)

* New translations plain-text.md (Indonesian)

* New translations pure-preset.md (Indonesian)

* New translations pastel-powerline.md (Indonesian)

* New translations no-nerd-font.md (Indonesian)

* New translations no-empty-icons.md (Indonesian)

* New translations tokyo-night.md (Indonesian)

* New translations gruvbox-rainbow.md (Indonesian)

* New translations jetpack.md (Indonesian)

* New translations readme.md (Bengali)

* New translations bracketed-segments.md (Bengali)

* New translations nerd-font.md (Bengali)

* New translations no-runtimes.md (Bengali)

* New translations plain-text.md (Bengali)

* New translations pure-preset.md (Bengali)

* New translations pastel-powerline.md (Bengali)

* New translations no-nerd-font.md (Bengali)

* New translations no-empty-icons.md (Bengali)

* New translations tokyo-night.md (Bengali)

* New translations gruvbox-rainbow.md (Bengali)

* New translations jetpack.md (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations bracketed-segments.md (Sorani (Kurdish))

* New translations nerd-font.md (Sorani (Kurdish))

* New translations no-runtimes.md (Sorani (Kurdish))

* New translations plain-text.md (Sorani (Kurdish))

* New translations pure-preset.md (Sorani (Kurdish))

* New translations pastel-powerline.md (Sorani (Kurdish))

* New translations no-nerd-font.md (Sorani (Kurdish))

* New translations no-empty-icons.md (Sorani (Kurdish))

* New translations tokyo-night.md (Sorani (Kurdish))

* New translations gruvbox-rainbow.md (Sorani (Kurdish))

* New translations jetpack.md (Sorani (Kurdish))

* New translations bracketed-segments.md (Ukrainian)

* New translations nerd-font.md (Ukrainian)

* New translations no-runtimes.md (Ukrainian)

* New translations plain-text.md (Ukrainian)

* New translations pure-preset.md (Ukrainian)

* New translations pastel-powerline.md (Ukrainian)

* New translations no-nerd-font.md (Ukrainian)

* New translations no-empty-icons.md (Ukrainian)

* New translations tokyo-night.md (Ukrainian)

* New translations gruvbox-rainbow.md (Ukrainian)

* New translations jetpack.md (Ukrainian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (French)

* New translations readme.md (Spanish)

* New translations readme.md (Arabic)

* New translations readme.md (German)

* New translations readme.md (Italian)

* New translations readme.md (Japanese)

* New translations readme.md (Korean)

* New translations readme.md (Dutch)

* New translations readme.md (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Ukrainian)

* 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 (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Japanese)

* New translations readme.md (Japanese)

* New translations readme.md (Japanese)

* New translations readme.md (Spanish)

* New translations readme.md (Arabic)

* New translations readme.md (German)

* New translations readme.md (Italian)

* New translations readme.md (Japanese)

* New translations readme.md (Korean)

* New translations readme.md (Dutch)

* New translations readme.md (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (French)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (French)

* New translations readme.md (Spanish)

* New translations readme.md (Arabic)

* New translations readme.md (German)

* New translations readme.md (Italian)

* New translations readme.md (Japanese)

* New translations readme.md (Korean)

* New translations readme.md (Dutch)

* New translations readme.md (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))
This commit is contained in:
Matan Kushner
2024-10-18 03:20:57 +09:00
committed by GitHub
parent 2125e432ab
commit 6555778471
279 changed files with 2542 additions and 1681 deletions
+107 -75
View File
@@ -553,10 +553,7 @@ discharging_symbol = '💦 '
## Buf
The `buf` module shows the currently installed version of [Buf](https://buf.build). By default, the module is shown if all of the following conditions are met:
- The [`buf`](https://github.com/bufbuild/buf) CLI is installed.
- The current directory contains a [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml), [`buf.gen.yaml`](https://docs.buf.build/configuration/v1/buf-gen-yaml), or [`buf.work.yaml`](https://docs.buf.build/configuration/v1/buf-work-yaml) configuration file.
The `buf` module shows the currently installed version of [Buf](https://buf.build). By default, the module is shown if the current directory contains a [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml), [`buf.gen.yaml`](https://docs.buf.build/configuration/v1/buf-gen-yaml), or [`buf.work.yaml`](https://docs.buf.build/configuration/v1/buf-work-yaml) configuration file.
### 配置项
@@ -635,7 +632,7 @@ format = 'via [🍔 $version](bold green) '
You can override the `detect_files` property of [the nodejs module](#nodejs) in your config so as to only show the bun runtime:
```
```toml
[nodejs]
detect_files = ['package.json', '.node-version', '!bunfig.toml', '!bun.lockb']
```
@@ -863,7 +860,7 @@ The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) e
::: tip 提示
此组件没有禁用 conda 自带的提示符修改,您可能需要执行 `conda config --set changeps1 False`
此组件没有禁用 conda 自带的提示符修改,您可能需要执行 `conda config --set changeps1 False` If you use [pixi](https://pixi.sh), you can disable pixi's prompt modifier by running `pixi config set change-ps1 false`.
:::
@@ -1050,20 +1047,20 @@ format = 'via [🔰 $version](bold red) '
`deno` 组件显示当前安装的 [Deno](https://deno.land/) 版本。 默认情况下,此组件将在满足以下任意条件时显示:
- 当前目录包含 `deno.json``deno.jsonc``mod.ts``mod.js``deps.ts` `deps.js` 文件
- The current directory contains a `deno.json`, `deno.jsonc`, `deno.lock`, `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
### 配置项
| 选项 | 默认值 | 描述 |
| ------------------- | ----------------------------------------------------------------------- | ------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor``patch` |
| `symbol` | `'🦕 '` | 用于表示 Deno 的格式化字符串 |
| `detect_extensions` | `[]` | 触发此组件的扩展名 |
| `detect_files` | `['deno.json', 'deno.jsonc', 'mod.ts', 'mod.js', 'deps.ts', 'deps.js']` | 触发此组件的文件名 |
| `detect_folders` | `[]` | 触发此组件的文件夹 |
| `style` | `'green bold'` | 此组件的样式。 |
| `disabled` | `false` | 禁用 `deno` 组件 |
| 选项 | 默认值 | 描述 |
| ------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor``patch` |
| `symbol` | `'🦕 '` | 用于表示 Deno 的格式化字符串 |
| `detect_extensions` | `[]` | 触发此组件的扩展名 |
| `detect_files` | `['deno.json', 'deno.jsonc', 'deno.lock', 'mod.ts', 'mod.js', 'deps.ts', 'deps.js']` | 触发此组件的文件名 |
| `detect_folders` | `[]` | 触发此组件的文件夹 |
| `style` | `'green bold'` | 此组件的样式。 |
| `disabled` | `false` | 禁用 `deno` 组件 |
### 变量
@@ -1117,7 +1114,7 @@ When using the `fish_style_pwd_dir_length` option, instead of hiding the path th
| `fish_style_pwd_dir_length` | `0` | 使用 fish shell 当前目录路径逻辑时每个省略目录名使用的字符数。 |
| `use_logical_path` | `true` | If `true` render the logical path sourced from the shell via `PWD` or `--logical-path`. If `false` instead render the physical filesystem path with symlinks resolved. |
`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.
`substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories of Java. Note that this will disable the fish style PWD.
```toml
[directory.substitutions]
@@ -1207,7 +1204,7 @@ disabled = false
## Docker Context
The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or if the `DOCKER_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or `desktop-linux`, or if the `DOCKER_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
### 配置项
@@ -1759,7 +1756,7 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
| `tag_max_candidates` | `0` | How many commits to consider for tag display. The default only allows exact matches. |
| `tag_symbol` | `' 🏷 '` | Tag symbol prefixing the info shown |
| `tag_symbol` | `' 🏷 '` | Tag symbol prefixing the info shown |
| `disabled` | `false` | 禁用 `git_commit` 组件。 |
### 变量
@@ -1890,7 +1887,7 @@ The Git Status module is very slow in Windows directories (for example under `/m
| `staged` | `'+'` | The format of `staged` |
| `renamed` | `'»'` | The format of `renamed` |
| `deleted` | `'✘'` | The format of `deleted` |
| `typechanged` | `""` | The format of `typechange` |
| `typechanged` | `""` | The format of `typechanged` |
| `style` | `'bold red'` | 此组件的样式。 |
| `忽略子组件` | `false` | 忽略子模块的更改. |
| `disabled` | `false` | 禁用 `git_status` 组件。 |
@@ -1911,7 +1908,7 @@ The following variables can be used in `format`:
| `staged` | Displays `staged` when a new file has been added to the staging area. |
| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
| `typechanged` | Displays `typechange` when a file's type has been changed in the staging area. |
| `typechanged` | Displays `typechanged` when a file's type has been changed in the staging area. |
| style\* | `style`对应值 |
*: 此变量只能作为样式字符串的一部分使用
@@ -2248,15 +2245,16 @@ format = 'via [⎈ $version](bold white) '
### 配置项
| 选项 | 默认值 | 描述 |
| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| `ssh_only` | `true` | 仅在连接到 SSH 会话时显示主机名。 |
| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
| `trim_at` | `'.'` | 当主机名过长被截断时,会截断成第一次匹配该字符串之前的主机名。 `'.'` will stop after the first dot. `''` will disable any truncation. |
| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `format` | `'[$ssh_symbol$hostname]($style) in '` | 组件格式化模板。 |
| `style` | `'bold dimmed green'` | 此组件的样式。 |
| `disabled` | `false` | 禁用 `hostname` 组件。 |
| 选项 | 默认值 | 描述 |
| ----------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `ssh_only` | `true` | 仅在连接到 SSH 会话时显示主机名。 |
| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
| `trim_at` | `'.'` | 当主机名过长被截断时,会截断成第一次匹配该字符串之前的主机名。 `'.'` will stop after the first dot. `''` will disable any truncation. |
| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `format` | `'[$ssh_symbol$hostname]($style) in '` | 组件格式化模板。 |
| `style` | `'bold dimmed green'` | 此组件的样式。 |
| `disabled` | `false` | 禁用 `hostname` 组件。 |
| `aliases` | `{}` | Translate system hostnames to something else. If `trim_at` is specified, only the first part will be matched and replaced. |
### 变量
@@ -2293,6 +2291,14 @@ detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
#### Replace the hostname with a nickname
```toml
# ~/.config/starship.toml
[hostname]
aliases = { "Max's MacBook Pro" = "home" }
```
## Java
`java` 组件显示当前安装的 [Java](https://www.oracle.com/java/) 版本。 默认情况下,此组件将在满足以下任意条件时显示:
@@ -2809,6 +2815,41 @@ truncation_length = 4
truncation_symbol = ''
```
## Mojo
The `mojo` module shows the current version of [Mojo programming language](https://www.modular.com/mojo) installed
### 配置项
| 选项 | 默认值 | 描述 |
| ------------------- | ------------------------------------- | ------------------------------------------------------ |
| `format` | `'with [$symbol($version )]($style)'` | 组件格式化模板。 |
| `symbol` | `'🔥 '` | The symbol used before displaying the version of Mojo. |
| `style` | `'bold 208'` | 此组件的样式。 |
| `disabled` | `false` | Disables the `mojo` module. |
| `detect_extensions` | `['mojo', '🔥']` | 触发此组件的扩展名 |
| `detect_files` | `[]` | 触发此组件的文件名 |
| `detect_folders` | `[]` | 触发此组件的文件夹 |
### 变量
| 字段 | 示例 | 描述 |
| --------- | -------- | --------------------- |
| version | `24.4.0` | The version of `mojo` |
| symbol | | `symbol`对应值 |
| style\* | | `style`对应值 |
*: 此变量只能作为样式字符串的一部分使用
### 示例
```toml
# ~/.config/starship.toml
[mojo]
format = 'via [mojo ($version )($hash )]($style)'
```
## NATS
The `nats` module shows the name of the current [NATS](https://nats.io) context.
@@ -2934,17 +2975,17 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
### 配置项
| 选项 | 默认值 | 描述 |
| ------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor``patch` |
| `symbol` | `' '` | A format string representing the symbol of Node.js. |
| `detect_extensions` | `['js', 'mjs', 'cjs', 'ts', 'mts', 'cts']` | 触发此组件的扩展名 |
| `detect_files` | `['package.json', '.node-version']` | 触发此组件的文件名 |
| `detect_folders` | `['node_modules']` | 触发此组件的文件夹 |
| `style` | `'bold green'` | 此组件的样式。 |
| `disabled` | `false` | 禁用 `nodejs` 组件。 |
| `not_capable_style` | `'bold red'` | The style for the module when an engines property in package.json does not match the Node.js version. |
| 选项 | 默认值 | 描述 |
| ------------------- | --------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor``patch` |
| `symbol` | `' '` | A format string representing the symbol of Node.js. |
| `detect_extensions` | `['js', 'mjs', 'cjs', 'ts', 'mts', 'cts']` | 触发此组件的扩展名 |
| `detect_files` | `['package.json', '.node-version', '.nvmrc']` | 触发此组件的文件名 |
| `detect_folders` | `['node_modules']` | 触发此组件的文件夹 |
| `style` | `'bold green'` | 此组件的样式。 |
| `disabled` | `false` | 禁用 `nodejs` 组件。 |
| `not_capable_style` | `'bold red'` | The style for the module when an engines property in package.json does not match the Node.js version. |
### 变量
@@ -3492,24 +3533,26 @@ By default, the module will be shown if any of the following conditions are met:
- 当前目录包含 `requirements.txt` 文件
- 当前目录包含一个 `setup.py` 文件
- 当前目录包含一个 `tox.ini` 文件
- 当前目录包含 `pixi.toml` 文件
- 当前目录包含一个使用 `.py` 扩展名的文件.
- The current directory contains a file with the `.ipynb` extension.
- 当前处于一个活跃的 python 虚拟环境中
### 配置项
| 选项 | 默认值 | 描述 |
| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | 组件格式化模板。 |
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor``patch` |
| `symbol` | `'🐍 '` | 用于表示Python的格式化字符串。 |
| `style` | `'yellow bold'` | 此组件的样式。 |
| `pyenv_version_name` | `false` | 使用 pyenv 获取 Python 版本 |
| `pyenv_prefix` | `'pyenv'` | Prefix before pyenv version display, only used if pyenv is used |
| `python_binary` | `['python', 'python3', 'python2']` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `['py']` | Which extensions should trigger this module |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
| `disabled` | `false` | 禁用 `python` 组件。 |
| 选项 | 默认值 | 描述 |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | 组件格式化模板。 |
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor``patch` |
| `symbol` | `'🐍 '` | 用于表示Python的格式化字符串。 |
| `style` | `'yellow bold'` | 此组件的样式。 |
| `pyenv_version_name` | `false` | 使用 pyenv 获取 Python 版本 |
| `pyenv_prefix` | `'pyenv'` | Prefix before pyenv version display, only used if pyenv is used |
| `python_binary` | `['python', 'python3', 'python2']` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `['py', 'ipynb']` | Which extensions should trigger this module |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini', 'pixi.toml']` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
| `disabled` | `false` | 禁用 `python` 组件。 |
::: tip 提示
@@ -4350,7 +4393,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | 组件格式化模板。 |
| `show_always` | `false` | 总是显示 `username` 组件。 |
| `disabled` | `false` | 禁用 `username` 组件。 |
| `aliases` | `{}` | Translate system usernames to something else |
| `aliases` | `{}` | Translate system usernames to something else. |
### 变量
@@ -4361,7 +4404,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 示例
#### Always show the hostname
#### Always show the username
```toml
# ~/.config/starship.toml
@@ -4375,17 +4418,6 @@ show_always = true
aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). 默认情况下,此组件将在满足以下任意条件时显示:
@@ -4573,7 +4605,7 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
| 选项 | 默认值 | 描述 |
| ------------------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `command` | `''` | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | `false` | Either a boolean value (`true` or `false`, without quotes) or a string shell command used as a condition to show the module. In case of a string, the module will be shown if the command returns a `0` status code. |
| `when` | `false` | Either a boolean value (`true` or `false`, without quotes) or a string shell command used as a condition to show the module. In case of a string, the module will be shown if the `shell` returns a `0` status code from executing it. |
| `require_repo` | `false` | If `true`, the module will only be shown in paths containing a (git) repository. This option alone is not sufficient display condition in absence of other options. |
| `shell` | | [See below](#custom-command-shell) |
| `描述` | `'<custom module>'` | The description of the module that is shown when running `starship explain`. |
@@ -4591,11 +4623,11 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
### 变量
| 字段 | 描述 |
| --------- | -------------- |
| output | `shell` 中命令的输出 |
| symbol | `symbol`对应值 |
| style\* | `style`对应值 |
| 字段 | 描述 |
| --------- | -------------------------------------- |
| output | The output of `command` run in `shell` |
| symbol | `symbol`对应值 |
| style\* | `style`对应值 |
*: 此变量只能作为样式字符串的一部分使用
@@ -4608,7 +4640,7 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
如果未设置,它将回退到 STARSHIP_SHELL,然后回退到 Linux 上的 "sh" 命令,在 Windows 上则是 "cmd /C"。
`command` 将会被传递给标准输入。
The `command` (and `when`, if applicable) will be passed in on stdin.
如果 `shell` 未设置或仅包含一个元素,并且 Starship 检测到正在使用 PowerShell,则会自动添加 `-NoProfile -Command -` 参数。 如果 `shell` 未设置或仅包含一个元素,并且 Starship 检测到正在使用 Cmd,则会自动添加 `/C` 参数,并且将 `stdin` 设置为 `false`。 如果 `shell` 未设置或仅包含一个元素,并且 Starship 检测到正在使用 Cmd,则会自动添加 `-C` 参数,并且将 `stdin` 设置为 `false`。 可以通过将参数显式传递给 shell 来避免这种行为,例如:
+10 -1
View File
@@ -431,7 +431,16 @@ eval "$(starship init zsh)"
通过 [成为赞助商 ](https://github.com/sponsors/starship)来支持这个项目。 您的名字或 LOGO 将在此处显示,并链接到您的网站。
- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
## 🔒 Code Signing Policy
Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org).
Code Signing Roles:
- Reviewers: [Astronauts](https://github.com/orgs/starship/teams/astronauts)
- Approvers and Authors: [Mission Control](https://github.com/orgs/starship/teams/mission-control)
This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.
<p align="center">
<br>
+4 -4
View File
@@ -16,11 +16,11 @@ This preset changes the symbols for several modules so that no Nerd Font symbols
::: tip 提示
This preset will become the default preset [in a future release of starship](https://github.com/starship/starship/pull/3544).
在[未来的starship release](https://github.com/starship/starship/pull/3544)中,这一预设将成为默认预设。
:::
[Click to view No Nerd Font preset](./no-nerd-font)
[点击查看No Nerd Fonts预设](./no-nerd-font)
## [Bracketed Segments](./bracketed-segments.md)
@@ -44,7 +44,7 @@ This preset will become the default preset [in a future release of starship](htt
This preset does not show icons if the toolset is not found.
[![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png "Click to view No Runtime Versions preset")](./no-empty-icons.md)
[![No Empty Icons预设的截图](/presets/img/no-empty-icons.png "Click to view No Runtime Versions preset")](./no-empty-icons.md)
## [Pure Prompt](./pure-preset.md)
@@ -72,6 +72,6 @@ This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), an
## [Jetpack](./jetpack.md)
This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
这是一个伪最简的预设,灵感来自 [geometry](https://github.com/geometry-zsh/geometry) [spaceship](https://github.com/spaceship-prompt/spaceship-prompt)
[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
+1 -1
View File
@@ -12,6 +12,6 @@
starship preset bracketed-segments -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/bracketed-segments.toml)
[Click to download TOML](/presets/toml/bracketed-segments.toml){download}
<<< @/public/presets/toml/bracketed-segments.toml
+1 -1
View File
@@ -16,6 +16,6 @@ This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), an
starship preset gruvbox-rainbow -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/gruvbox-rainbow.toml)
[Click to download TOML](/presets/toml/gruvbox-rainbow.toml){download}
<<< @/public/presets/toml/gruvbox-rainbow.toml
+3 -3
View File
@@ -2,7 +2,7 @@
# Jetpack Preset
This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
这是一个伪最简的预设,灵感来自 [geometry](https://github.com/geometry-zsh/geometry) [spaceship](https://github.com/spaceship-prompt/spaceship-prompt)
> Jetpack uses the terminal's color theme.
@@ -10,7 +10,7 @@ This is a pseudo minimalist preset inspired by the [geometry](https://github.com
### Prerequisite
- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
- 需要一个 支持[`右提示词`](https://starship.rs/advanced-config/#enable-right-prompt)的shell。
- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
### 配置
@@ -19,6 +19,6 @@ This is a pseudo minimalist preset inspired by the [geometry](https://github.com
starship preset jetpack -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/jetpack.toml)
[Click to download TOML](/presets/toml/jetpack.toml){download}
<<< @/public/presets/toml/jetpack.toml
+1 -1
View File
@@ -16,6 +16,6 @@
starship preset nerd-font-symbols -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/nerd-font-symbols.toml)
[Click to download TOML](/presets/toml/nerd-font-symbols.toml){download}
<<< @/public/presets/toml/nerd-font-symbols.toml
+3 -3
View File
@@ -2,9 +2,9 @@
# No Empty Icons Preset
If toolset files are identified the toolset icon is displayed. If the toolset is not found to determine its version number, it is not displayed. This preset changes the behavior to display the icon only if the toolset information can be determined.
只有确认toolset文件后才显示toolset图标。 如果没有找到toolset的版本号,就不会显示toolset。 本预设改变了图标的显示条件:只有找到toolset信息时显示。
![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png)
![No Empty Icons预设的截图](/presets/img/no-empty-icons.png)
### 配置
@@ -12,6 +12,6 @@ If toolset files are identified the toolset icon is displayed. If the toolset is
starship preset no-empty-icons -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/no-empty-icons.toml)
[Click to download TOML](/presets/toml/no-empty-icons.toml){download}
<<< @/public/presets/toml/no-empty-icons.toml
+4 -4
View File
@@ -2,11 +2,11 @@
# No Nerd Fonts Preset
This preset restricts the use of symbols to those from emoji and powerline sets.
此预设谨慎的使用了来自emoji和powerline的符号。
This means that even without a Nerd Font installed, you should be able to view all module symbols.
这意味着即使没有安装Nerd Font,您也应该看到所有的模块符号。
This preset will become the default preset in a future release of starship.
在未来的starship release中,此预设将成为默认预设。
### 配置
@@ -14,6 +14,6 @@ This preset will become the default preset in a future release of starship.
starship preset no-nerd-font -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/no-nerd-font.toml)
[Click to download TOML](/presets/toml/no-nerd-font.toml){download}
<<< @/public/presets/toml/no-nerd-font.toml
+1 -1
View File
@@ -12,6 +12,6 @@
starship preset no-runtime-versions -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/no-runtime-versions.toml)
[Click to download TOML](/presets/toml/no-runtime-versions.toml){download}
<<< @/public/presets/toml/no-runtime-versions.toml
+2 -2
View File
@@ -8,7 +8,7 @@
### 前置要求
- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (the example uses Caskaydia Cove Nerd Font)
- 在终端中安装并使用 [Nerd Font](https://www.nerdfonts.com/)字体(本示例使用Caskaydia Cove Nerd Font)。
### 配置
@@ -16,6 +16,6 @@
starship preset pastel-powerline -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/pastel-powerline.toml)
[Click to download TOML](/presets/toml/pastel-powerline.toml){download}
<<< @/public/presets/toml/pastel-powerline.toml
+1 -1
View File
@@ -12,6 +12,6 @@
starship preset plain-text-symbols -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/plain-text-symbols.toml)
[Click to download TOML](/presets/toml/plain-text-symbols.toml){download}
<<< @/public/presets/toml/plain-text-symbols.toml
+1 -1
View File
@@ -12,6 +12,6 @@
starship preset pure-preset -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/pure-preset.toml)
[Click to download TOML](/presets/toml/pure-preset.toml){download}
<<< @/public/presets/toml/pure-preset.toml
+1 -1
View File
@@ -16,6 +16,6 @@
starship preset tokyo-night -o ~/.config/starship.toml
```
[点击下载 TOML 文件](/presets/toml/tokyo-night.toml)
[Click to download TOML](/presets/toml/tokyo-night.toml){download}
<<< @/public/presets/toml/tokyo-night.toml