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

This commit is contained in:
Matan Kushner
2022-02-07 15:53:55 +01:00
committed by GitHub
parent db86a93824
commit 1d965a9d24
128 changed files with 7869 additions and 5504 deletions
+6 -6
View File
@@ -30,7 +30,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
### 前置要求
- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal.
- 安装并在你的终端启用一种 [Nerd Font](https://www.nerdfonts.com/)
### 快速安装
@@ -143,13 +143,13 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
::: warning This will change in the future. 仅支持 nu 版本 v0.33 或更高版本。 ::: Add the following to your nu config file. 您可以用 nu 运行 `config path` 来检查此 文件的位置。
```toml
startup = [
"mkdir ~/.cache/starship",
"starship init nu | save ~/.cache/starship/init.nu",
"source ~/.cache/starship/init.nu"
"mkdir ~/.cache/starship",
"starship init nu | save ~/.cache/starship/init.nu",
"source ~/.cache/starship/init.nu",
]
prompt = "starship_prompt"
```
@@ -157,7 +157,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Xonsh
Add the following to the end of `~/.xonshrc`:
`~/.bashhrc` 的最后,添加以下内容:
```sh
# ~/.xonshrc
+40 -38
View File
@@ -8,11 +8,11 @@
:::
## Custom pre-prompt and pre-execution Commands in Cmd
## 在 Cmd 中自定义预提示和执行前命令
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
Clink 提供了很灵活的 API,能在 Cmd shell 中运行预提示和执行前命令。 在 Starship 中使用这些 API 很容易。 对你的 `starship.lua` 按需做出如下修改:
- To run a custom function right before the prompt is drawn, define a new function called `starship_preprompt_user_func`. This function receives the current prompt as a string that you can utilize. For example, to draw a rocket before the prompt, you would do
- 为了在提示符显示前运行一个自定义函数,你需要定义一个名为 `starship_preprompt_user_func` 的函数。 这个函数接受当前的提示符作为字符串参数,你可以在函数中使用它。 例如,如果想在提示符前绘制一个火箭,可以这样写:
```lua
function starship_preprompt_user_func(prompt)
@@ -22,7 +22,7 @@ end
load(io.popen('starship init cmd'):read("*a"))()
```
- To run a custom function right before a command is executed, define a new function called `starship_precmd_user_func`. This function receives the current commandline as a string that you can utilize. For example, to print the command that's about to be executed, you would do
- 为了在命令执行前运行一个自定义函数,你需要定义一个名为 `starship_precmd_user_func` 的函数。 这个函数接受当前的命令行内容作为字符串参数,同样,你可以在函数中使用它。 例如,要打印即将被执行的命令,可以这样写:
```lua
function starship_precmd_user_func(line)
@@ -32,11 +32,11 @@ end
load(io.popen('starship init cmd'):read("*a"))()
```
## Custom pre-prompt and pre-execution Commands in Bash
## 在 Cmd 中自定义预提示和执行前命令
Bash does not have a formal preexec/precmd framework like most other shells. Because of this, it is difficult to provide fully customizable hooks in `bash`. 然而,Starship 确实能使您有限地在提示符渲染过程中插入自己的函数执行:
Bash 并没有类似大多数其它 shell 的正式预执行/预命令框架。 因此,很难在 `bash` 中提供完全可自定义的 hook 机制。 然而,Starship 确实能使您有限地在提示符渲染过程中插入自己的函数执行:
- To run a custom function right before the prompt is drawn, define a new function and then assign its name to `starship_precmd_user_func`. For example, to draw a rocket before the prompt, you would do
- 若要在提示符显示之前运行自定义函数,需要定义此函数,然后将函数名赋值给 `starship_reserved_user_func`。 例如,要在提示符之前绘制一枚火箭,您应该写
```bash
function blastoff(){
@@ -45,14 +45,16 @@ function blastoff(){
starship_precmd_user_func="blastoff"
```
- To run a custom function right before a command runs, you can use the [`DEBUG` trap mechanism](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). However, you **must** trap the DEBUG signal *before* initializing Starship! Starship can preserve the value of the DEBUG trap, but if the trap is overwritten after starship starts up, some functionality will break.
- 要在一个命令运行前运行自定义函数,您可以使用 [`DEBUG` trap 机制](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/)。 然而,您**必须**在捕捉 DEBUG 信号_之前_启动 Starship Starship 可以保留 DEBUG trap 的值,但如果该 trap 在 starship 启动后被覆盖,一些功能将会被破坏。
```bash
function blastoff(){
echo "🚀"
}
trap blastoff DEBUG # Trap DEBUG *before* running starship
set -o functrace
eval $(starship init bash)
set +o functrace
```
## Custom pre-prompt and pre-execution Commands in PowerShell
@@ -67,11 +69,11 @@ function Invoke-Starship-PreCommand {
}
```
## Change Window Title
## 更改窗口标题
Some shell prompts will automatically change the window title for you (e.g. to reflect your working directory). Fish even does it by default. Starship does not do this, but it's fairly straightforward to add this functionality to `bash`, `zsh`, `cmd` or `powershell`.
一些 shell 会自动更改您的窗口标题(比如改成您的工作目录)。 Fish 甚至默认会执行此功能。 Starship does not do this, but it's fairly straightforward to add this functionality to `bash`, `zsh`, `cmd` or `powershell`.
First, define a window title change function (identical in bash and zsh):
首先,定义窗口标题更改函数(在 bash zsh 中相同):
```bash
function set_win_title(){
@@ -79,23 +81,23 @@ function set_win_title(){
}
```
You can use variables to customize this title (`$USER`, `$HOSTNAME`, and `$PWD` are popular choices).
您可以使用变量来定制标题(常用的有 `$USER``$HOSTNAME` `$PWD`)。
In `bash`, set this function to be the precmd starship function:
`bash` 中,设置此函数为 starship 预执行函数:
```bash
starship_precmd_user_func="set_win_title"
```
In `zsh`, add this to the `precmd_functions` array:
`zsh`中,将此函数添加到 `reservmd_functions` 列表:
```bash
precmd_functions+=(set_win_title)
```
If you like the result, add these lines to your shell configuration file (`~/.bashrc` or `~/.zshrc`) to make it permanent.
如果您对产生的效果感到满意,请将以上代码添加到您的 shell 配置文件(`~/.bashrc` `~/zsrhc`)中以使其永久化。
For example, if you want to display your current directory in your terminal tab title, add the following snippet to your `~/.bashrc` or `~/.zshrc`:
例如,如果您想要在终端标签标题中显示当前目录, 将以下代码添加到您的 `~/.ashrc` `~/.zshrc`:
```bash
function set_win_title(){
@@ -125,9 +127,9 @@ function Invoke-Starship-PreCommand {
Invoke-Expression (&starship init powershell)
```
## Enable Right Prompt
## 启用右侧提示
Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
一些 Shell 支持右侧提示, 它与输入区渲染在同一行。 Starship 可以设置右侧提示的内容,使用 `right_format` 选项。 Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
@@ -161,9 +163,9 @@ Note: `continuation_prompt` should be set to a literal string without any variab
Note: Continuation prompts are only available in the following shells:
- `bash`
- `zsh`
- `PowerShell`
- `bash`
- `zsh`
- `PowerShell`
### 示例
@@ -176,26 +178,26 @@ continuation_prompt = "▶▶"
## 样式设定
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
样式字符串是用空格分隔的单词列表。 其中单词不是大小写敏感的(例如 `bold` `BoLd` 被视为同一字符串)。 每个单词可以是以下之一:
- `bold`
- `italic`
- `underline`
- `dimmed`
- `inverted`
- `bg:<color>`
- `fg:<color>`
- `<color>`
- `none`
- `bold`
- `italic`
- `underline`
- `dimmed`
- `inverted`
- `bg:<color>`
- `fg:<color>`
- `<color>`
- `none`
where `<color>` is a color specifier (discussed below). `fg:<color>` and `<color>` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
`<color>` 是颜色说明符(下面解释)。 `fg:<color>` and `<color>` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. 字符串中的单词顺序不影响显示结果。
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.
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`. 未来可能会将 `none` 与其它标识符一起使用视为一种错误。
A color specifier can be one of the following:
颜色说明符可以是以下内容之一:
- One of the standard terminal colors: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. You can optionally prefix these with `bright-` to get the bright version (e.g. `bright-white`).
- A `#` followed by a six-digit hexadecimal number. This specifies an [RGB color hex code](https://www.w3schools.com/colors/colors_hexadecimal.asp).
- A number between 0-255. This specifies an [8-bit ANSI Color Code](https://i.stack.imgur.com/KTSQa.png).
- One of the standard terminal colors: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. You can optionally prefix these with `bright-` to get the bright version (e.g. `bright-white`).
- 一个 `#` 后跟一个六位十六进制数。 这将指定一个 [十六进制 RGB 颜色代码](https://www.w3schools.com/colors/colors_hexadecimal.asp)
- 0-255 之间的数字。 这将指定一个 [8 位 ANSI 颜色码](https://i.stack.imgur.com/KTSQa.png)
If multiple colors are specified for foreground/background, the last one in the string will take priority.
如果为文本/背景指定了多个颜色,字符串中最后指定的颜色将具有最高优先级。
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -58,7 +58,7 @@ sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --platform unknown-linux
## Why do I see `Executing command "..." timed out.` warnings?
Starship executes different commands to get information to display in the prompt, for example the version of a program or the current git status. To make sure starship doesn't hang while trying to execute these commands we set a time limit, if a command takes longer than this limit starship will stop the execution of the command and output the above warning, this is expected behaviour. This time limit is configurable using the [`command_timeout` key](/config/#prompt) so if you want you can increase the time limit. You can also follow the debugging steps below to see which command is being slow and see if you can optimise it. Finally you can set the `STARSHIP_LOG` env var to `error` to hide these warnings.
Starship executes different commands to get information to display in the prompt, for example the version of a program or the current git status. To make sure starship doesn't hang while trying to execute these commands we set a time limit, if a command takes longer than this limit starship will stop the execution of the command and output the above warning, this is expected behaviour. This time limit is configurable using the [`command_timeout`key](/config/#prompt) so if you want you can increase the time limit. You can also follow the debugging steps below to see which command is being slow and see if you can optimise it. Finally you can set the `STARSHIP_LOG` env var to `error` to hide these warnings.
## I see symbols I don't understand or expect, what do they mean?
+166 -98
View File
@@ -2,7 +2,7 @@
<img
width="400"
src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png"
alt="Starship Cross-shell prompt"
alt="Starship:可用于各种 Shell 的提示符"
/>
</p>
@@ -10,17 +10,17 @@
<a href="https://github.com/starship/starship/actions"
><img
src="https://img.shields.io/github/workflow/status/starship/starship/Main workflow/master?label=workflow&style=flat-square"
alt="GitHub Actions workflow status"
alt="GitHub Actions 工作流状态"
/></a>
<a href="https://crates.io/crates/starship"
><img
src="https://img.shields.io/crates/v/starship?style=flat-square"
alt="Crates.io version"
alt="Crates.io 版本"
/></a>
<a href="https://repology.org/project/starship/versions"
><img
src="https://img.shields.io/repology/repositories/starship?label=in%20repositories&style=flat-square"
alt="Packaging status" /></a
alt="打包状态" /></a
><br />
<a href="https://discord.gg/starship"
><img
@@ -30,7 +30,7 @@
<a href="https://twitter.com/StarshipPrompt"
><img
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Follow @StarshipPrompt on Twitter"
alt="在 Twitter 上关注 @Starshipmpt"
/></a>
</p>
@@ -169,177 +169,245 @@
- 安装一个 [Nerd Font](https://www.nerdfonts.com/) 的字体,并在终端启用(例如,可以尝试使用 [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads) 字体)。
### 开始安装
### 步骤 1. 安装 Starship
**注意**: 由于平台众多,下面只显示支持的部分平台 找不到你的平台? 查看 [额外的平台说明](https://starship.rs/installing/)。
从下面的列表中选择您的操作系统以查看安装指令:
1. 安装 **starship** 二进制文件:
<details>
<summary>Android</summary>
使用下列软件包管理器安装Starship:
#### 安装最新版本
| 软件包来源 | 指令 |
| --------------------------------------------------------------------------------- | ---------------------- |
| [Termux](https://github.com/termux/termux-packages/tree/master/packages/starship) | `pkg install starship` |
</details>
##### 下载预构建的二进制文件,使用 Shell 命令:
<details>
<summary>BSD</summary>
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
使用下列软件包管理器安装Starship:
自更新 Starship ,运行下面脚本 将会在不改动 Starship 配置文件的情况下升级版本
| Distribution | 软件包来源 | 指令 |
| ------------ | -------------------------------------------------------- | --------------------------------- |
| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
**注意** - 可以覆盖安装脚本的默认值,请参阅内置帮助。
</details>
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --help
```
<details>
<summary>Linux</summary>
Install the latest version for your system:
#### 通过软件包管理器安装
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
Alternatively, install Starship using any of the following package managers:
##### 使用 [Homebrew](https://brew.sh/)
| Distribution | 软件包来源 | 指令 |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
| _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install starship` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` |
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
| Fedora 31+ | [Fedora Packages](https://src.fedoraproject.org/rpms/rust-starship) | `dnf install starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixos.starship` |
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
```sh
brew install starship
```
</details>
<details>
<summary>macOS</summary>
##### 使用 [Scoop](https://scoop.sh)
Install the latest version for your system:
```powershell
scoop install starship
```
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
2. 将初始化脚本添加到您的 shell 的配置文件:
Alternatively, install Starship using any of the following package managers:
| 软件包来源 | 指令 |
| -------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
| [Homebrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| [MacPorts](https://ports.macports.org/port/starship) | `port install starship` |
#### Bash
</details>
`~/.bashhrc` 的最后,添加以下内容:
<details>
<summary>Windows</summary>
```sh
# ~/.bashrc
使用下列软件包管理器安装Starship:
eval "$(starship init bash)"
```
| 软件包来源 | 指令 |
| -------------------------------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [Chocolatey](https://community.chocolatey.org/packages/starship) | `choco install starship` |
| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
| [Scoop](https://github.com/ScoopInstaller/Main/blob/master/bucket/starship.json) | `scoop install starship` |
</details>
#### Fish
### 步骤 2. 设置你的终端以使用 Starship
`~/.config/fish/config.fish` 的最后,添加以下内容
配置你的终端来初始化 starship。 请从下面列表选择你的终端
```sh
# ~/.config/fish/config.fish
<details>
<summary>Bash</summary>
starship init fish | source
```
`~/.bashhrc` 的最后,添加以下内容:
```sh
eval "$(starship init bash)"
```
#### Zsh
</details>
`~/.zshrc` 的最后,添加以下内容:
<details>
<summary>Cmd</summary>
```sh
# ~/.zshrc
您需要使用 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 与 Cmd. 在路径 `%LocalAppData%\clink\starship.lua` 下创建文件,输入以下内容
eval "$(starship init zsh)"
```
```lua
load(io.popen('starship init cmd'):read("*a"))()
```
</details>
#### PowerShell
<details>
<summary>Elvish</summary>
将以下内容添加到 `Microsoft.PowerShell_profile.ps1`。 你可以在 PowerShell 通过 `$PROFILE` 变量来查询文件的位置。 对于 -Nix 来说,通常文件路径是 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1``~/.config/powershell/Microsoft.PowerShell_profile.ps1`
`~/.config/fish/rc.elv` 的最后,添加以下内容:
```powershell
Invoke-Expression (&starship init powershell)
```
```sh
eval (starship init elvish)
```
Note: Only Elvish v0.17+ is supported
#### Ion
</details>
`~/.config/ion/initrc` 的最后,添加以下内容:
<details>
<summary>Fish</summary>
```sh
# ~/.config/ion/initrc
`~/.config/fish/config.fish` 的最后,添加以下内容:
eval $(starship init ion)
```
```fish
starship init fish | source
```
</details>
#### Elvish
<details>
<summary>Ion</summary>
**警告** 只支持 elvish v0.17 及以上。 `~/.config/fish/rc.elv` 的最后,添加以下内容:
`~/.config/ion/initrc` 的最后,添加以下内容:
```sh
# ~/.elvish/rc.elv
```sh
eval $(starship init ion)
```
eval (starship init elvish)
```
</details>
<details>
<summary>Nushell</summary>
#### Tcsh
Add the following to the end of your Nushell configuration (find it by running `config path`):
`~/.bashhrc` 的最后,添加以下内容:
```toml
startup = [
"mkdir ~/.cache/starship",
"starship init nu | save ~/.cache/starship/init.nu",
"source ~/.cache/starship/init.nu",
]
prompt = "starship_prompt"
```
```sh
# ~/.tcshrc
</details>
eval `starship init tcsh`
```
<details>
<summary>PowerShell</summary>
Add the following to the end of your PowerShell configuration (find it by running `$PROFILE`):
#### Xonsh
```powershell
Invoke-Expression (&starship init powershell)
```
`~/.bashhrc` 的最后,添加以下内容:
</details>
```sh
# ~/.xonshrc
<details>
<summary>Tcsh</summary>
execx($(starship init xonsh))
```
`~/.bashhrc` 的最后,添加以下内容:
```sh
eval `starship init tcsh`
```
#### Cmd
</details>
您需要使用 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 与 Cmd. 将以下文件添加到文件 `starship.lua` 中,并将此文件放置在 Clink脚本目录中:
<details>
<summary>Xonsh</summary>
```lua
-- starship.lua
`~/.bashhrc` 的最后,添加以下内容:
load(io.popen('starship init cmd'):read("*a"))()
```
```python
execx($(starship init xonsh))
```
</details>
#### Nushell
<details>
<summary>Zsh</summary>
**警告** 将来可能会改变。 仅支持 nu 版本 v0.33 或更高版本。 在您的 nu config 中添加以下内容: 您可以用 nu 运行 `config path` 来检查此 文件的位置。
`~/.zshrc` 的最后,添加以下内容:
```toml
startup = [
"mkdir ~/.cache/starship",
"starship init nu | save ~/.cache/starship/init.nu",
"source ~/.cache/starship/init.nu"
]
prompt = "starship_prompt"
```
```sh
eval "$(starship init zsh)"
```
</details>
### 步骤 3. 配置 StarShip
打开一个新的 Shell 实例,你应该就能看到漂亮的 Shell 新提示符了。 如果你对默认配置感到满意,就可以开始享用了!
如果你想进一步配置 Starship,查阅下列内容:
- **[配置](https://starship.rs/config/)**:学习如何配置 Starship 来调节提示符到你喜欢的样子。
- **[预设](https://starship.rs/presets/)**:从其他构建好的配置中获取灵感。
## 🤝 贡献
我们一直在寻找贡献者!**不论你的技能如何**你都可以参与贡献 。 如果您希望快速为项目作出贡献,请尝试解决 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)。
我们期待着 **所有技能等级** 的参与者! 如果你想让自己参与项目的路径轻松一些,可以先试试某个 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)。
如果你能流利地使用非英语语,我们非常感谢帮助翻译我们的文件并将其更新到其他语言。 如果想要帮,可以在 [Starship Crowdin](https://translate.starship.rs/) 上贡献翻译
如果你熟练掌握某个非英语语,我们非常感谢任何帮助翻译与同步文档到其他语言的贡献。 如果想要帮,可以在 [Starship Crowdin](https://translate.starship.rs/) 上参与
如果有兴趣贡献 Starship,请查看我们的[贡献指南](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)。 另外,你可以自由加入我们的 [Discord 服务器](https://discord.gg/8Jzqu3T) 。 👋
如果有兴趣贡献 Starship 这个项目,请先看看我们的 [贡献指南](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)。 也欢迎加入我们的 [Discord 服务器](https://discord.gg/8Jzqu3T) 和大家打个招呼。 👋
## 💭该项目受以下项目启发
参考这些曾经为 Starship 提供启发的工程。 🙏
看看这些之前的工作,他们启发了 Starship 项目的创造。 🙏
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** - A ZSH prompt for astronauts.
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** A ZSH prompt for astronauts.
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** - Cross-shell robbyrussell theme written in JavaScript.
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** Cross-shell robbyrussell theme written in JavaScript.
- **[reujab/silver](https://github.com/reujab/silver)** - A cross-shell customizable powerline-like prompt with icons.
- **[reujab/silver](https://github.com/reujab/silver)** A cross-shell customizable powerline-like prompt with icons.
<p align="center">
<br>
+1 -1
View File
@@ -109,7 +109,7 @@ To configure the prompt to use the older `use_symbol_for_status = true` configur
error_symbol = "[](bold red)"
```
*Note:* The `character` element automatically adds a space after, so unlike the other `format` strings, we specifically do not add one in the above examples.
_Note:_ The `character` element automatically adds a space after, so unlike the other `format` strings, we specifically do not add one in the above examples.
#### Command Duration
+4 -1
View File
@@ -60,6 +60,9 @@ symbol = " "
[nix_shell]
symbol = " "
[nodejs]
symbol = " "
[package]
symbol = " "
@@ -110,7 +113,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
format = '\[[⏱ $duration]($style)\]'
[cobol]
format = '\[[$symbol($version)]($style)\]'