mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
docs(i18n): new Crowdin updates (#4956)
This commit is contained in:
@@ -8,7 +8,7 @@ Starship 功能繁多,有时您必须在编辑 `starship.toml` 之外做更多
|
||||
|
||||
:::
|
||||
|
||||
## PowerShell中的命令行提示(TransientPrompt)
|
||||
## PowerShell 中的 TransientPrompt
|
||||
|
||||
可以用自定义字符串替换预设的命令行提示。 这在不经常需要所有提示信息的情况下很有用。 若要启用该功能,请在 shell 中运行 `Enable-TransitientPrompt`命令 若要永久启用该功能,请将 上述语句放在您的 `$PROFILE` 中。 通过在shell中运行 `Disable-TransientPrompt`命令来禁用这项功能。
|
||||
|
||||
@@ -280,5 +280,5 @@ continuation_prompt = '▶▶ '
|
||||
并非每种类型的字符串都会被每个终端正确显示。 特别地,以下是已知的几种情况:
|
||||
|
||||
- 许多终端默认禁用对 `blink` 的支持
|
||||
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
|
||||
- `strikethrough` 不被默认 macOS Terminal.app 支持
|
||||
- [iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564) 不支持 `hidden`
|
||||
- macOS 的默认终端不支持 `strikethrough`
|
||||
|
||||
+187
-183
File diff suppressed because it is too large
Load Diff
@@ -80,7 +80,7 @@ env STARSHIP_LOG=trace starship timings
|
||||
|
||||
它会输出日志,并且记录有输出的组件、运行时长超过 1 毫秒的组件。
|
||||
|
||||
Finally if you find a bug you can use the `bug-report` command to create a GitHub issue.
|
||||
最后,如果发现了 bug,请使用 `bug-report` 命令创建 GitHub 议题。
|
||||
|
||||
```sh
|
||||
starship bug-report
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
|
||||
### 步骤 1. 安装 Starship
|
||||
|
||||
从下面的列表中选择您的操作系统以查看安装指令:
|
||||
请选择你的操作系统以查看合适的安装教程:
|
||||
|
||||
<details>
|
||||
<summary>Android</summary>
|
||||
@@ -400,11 +400,11 @@ eval "$(starship init zsh)"
|
||||
|
||||
## 🤝 贡献
|
||||
|
||||
我们期待着 **所有技能等级** 的参与者! 如果你想让自己参与项目的路径轻松一些,可以先试试某个 [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) 和大家打个招呼。 👋
|
||||
|
||||
## 💭 该项目受以下项目启发
|
||||
|
||||
@@ -422,7 +422,6 @@ eval "$(starship init zsh)"
|
||||
|
||||
**支持者级别**
|
||||
|
||||
- [Dimension](https://dimension.dev/)
|
||||
- [Appwrite](https://appwrite.io/)
|
||||
|
||||
<p align="center">
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# 高级安装
|
||||
|
||||
安装Starship有以下两个步骤:
|
||||
安装 Starship 需要两步:
|
||||
|
||||
1. 下载 **starship** 的可执行文件
|
||||
1. 修改 shell 的初始化脚本,让 starship 显示命令提示符
|
||||
1. 下载 **Starship** 的可执行文件
|
||||
1. 修改 shell 的初始化脚本,将 Starship 设置为命令提示符
|
||||
|
||||
大部分用户按照[主页](/guide/#🚀-installation)上的步骤安装即可, 但有一些特殊系统上的安装步骤不同。
|
||||
|
||||
现有平台众多,README 中无法全部展示,所以这里是社区中对其他平台 的一些安装说明。 还没找到您的平台? 如果您找到它 ,请在这里添加它!
|
||||
现有平台众多,README 中无法全部展示,所以这里是社区中对其他平台 的一些安装说明。 找不到你的平台? 如果你知道怎么安装,请添加到这里!
|
||||
|
||||
## [Chocolatey](https://chocolatey.org)
|
||||
|
||||
@@ -55,9 +55,9 @@ emerge app-shells/starship
|
||||
nix-env -iA nixos.starship
|
||||
```
|
||||
|
||||
#### Declarative, single user, via [home-manager](https://github.com/nix-community/home-manager)
|
||||
#### 声明式、单用户,使用 [home-manager](https://github.com/nix-community/home-manager)
|
||||
|
||||
在您的 `home.nix` 文件中启用 `programs.starship` 模块,并添加您的设置
|
||||
请将以下内容添加到 `home.nix` 文件中以启用 `programs.starship` 模块
|
||||
|
||||
```nix
|
||||
{
|
||||
@@ -84,9 +84,9 @@ nix-env -iA nixos.starship
|
||||
home-manager switch
|
||||
```
|
||||
|
||||
#### Declarative, system-wide, with NixOS
|
||||
#### 声明式,全局,使用 NixOS
|
||||
|
||||
在您的 `configuration.nix`中,将 `pkgs.starship` 添加到 `environment.systemPackages`,然后运行
|
||||
请将 `pkgs.starship` 添加至 `configuration.nix` 文件中的 `environment.systemPackages` 下,并运行
|
||||
|
||||
```sh
|
||||
sudo nixos-rebuild switch
|
||||
|
||||
@@ -80,7 +80,7 @@ format = "took [$duration]($style) "
|
||||
|
||||
| Removed Property | Replacement |
|
||||
| ----------------------- | ---------------- |
|
||||
| `symbol` | `success_symbol` |
|
||||
| `符号` | `success_symbol` |
|
||||
| `use_symbol_for_status` | `error_symbol` |
|
||||
| `style_success` | `success_symbol` |
|
||||
| `style_failure` | `error_symbol` |
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset bracketed-segments > ~/.config/starship.toml
|
||||
starship preset bracketed-segments -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/bracketed-segments.toml)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset nerd-font-symbols > ~/.config/starship.toml
|
||||
starship preset nerd-font-symbols -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/nerd-font-symbols.toml)
|
||||
|
||||
@@ -9,7 +9,7 @@ If toolset files are identified the toolset icon is displayed. If the toolset is
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset no-empty-icons > ~/.config/starship.toml
|
||||
starship preset no-empty-icons -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/no-empty-icons.toml)
|
||||
|
||||
@@ -11,7 +11,7 @@ This preset will become the default preset in a future release of starship.
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset no-nerd-font > ~/.config/starship.toml
|
||||
starship preset no-nerd-font -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/no-nerd-font.toml)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset no-runtime-versions > ~/.config/starship.toml
|
||||
starship preset no-runtime-versions -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/no-runtime-versions.toml)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset pastel-powerline > ~/.config/starship.toml
|
||||
starship preset pastel-powerline -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/pastel-powerline.toml)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset plain-text-symbols > ~/.config/starship.toml
|
||||
starship preset plain-text-symbols -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/plain-text-symbols.toml)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset pure-preset > ~/.config/starship.toml
|
||||
starship preset pure-preset -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/pure-preset.toml)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
### 配置
|
||||
|
||||
```sh
|
||||
starship preset tokyo-night > ~/.config/starship.toml
|
||||
starship preset tokyo-night -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[点击下载 TOML 文件](/presets/toml/tokyo-night.toml)
|
||||
|
||||
Reference in New Issue
Block a user