mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
New translations readme.md (Chinese Simplified)
[ci skip]
This commit is contained in:
+13
-26
@@ -2,25 +2,22 @@
|
|||||||
layout: home
|
layout: home
|
||||||
hero:
|
hero:
|
||||||
image: /logo.svg
|
image: /logo.svg
|
||||||
text:
|
text: null
|
||||||
tagline: 轻量、迅速、客制化的高颜值终端!
|
tagline: 轻量、迅速、客制化的高颜值终端!
|
||||||
actions:
|
actions:
|
||||||
-
|
- theme: brand
|
||||||
theme: brand
|
|
||||||
text: 快速上手 →
|
text: 快速上手 →
|
||||||
link: ./guide/
|
link: ./guide/
|
||||||
features:
|
features:
|
||||||
-
|
- title: 兼容性优先
|
||||||
title: 兼容性优先
|
|
||||||
details: Starship 可以在常见的操作系统和 shell 上运行。 尝试着在各种地方使用它吧!
|
details: Starship 可以在常见的操作系统和 shell 上运行。 尝试着在各种地方使用它吧!
|
||||||
-
|
- title: 基于 Rust
|
||||||
title: 基于 Rust
|
|
||||||
details: Rust 特有的的速度与安全性,让你的提示尽可能的快速可靠。
|
details: Rust 特有的的速度与安全性,让你的提示尽可能的快速可靠。
|
||||||
-
|
- title: 客制化
|
||||||
title: 客制化
|
|
||||||
details: 每个小细节都可以按您喜欢的客制化,不论是最小化以求速度,还是更大以获得最完善的功能。
|
details: 每个小细节都可以按您喜欢的客制化,不论是最小化以求速度,还是更大以获得最完善的功能。
|
||||||
footer: ISC 许可 | 版权所有 © 2019至今 - Starship 贡献者
|
footer: ISC 许可 | 版权所有 © 2019至今 - Starship 贡献者
|
||||||
#Used for the description meta tag, for SEO
|
|
||||||
|
# Used for the description meta tag, for SEO
|
||||||
metaTitle: "Starship:可用于各种 Shell 的提示符"
|
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执行快速安装。
|
||||||
---
|
---
|
||||||
@@ -52,7 +49,6 @@ onMounted(() => {
|
|||||||
|
|
||||||
1. 安装 **starship** 二进制文件:
|
1. 安装 **starship** 二进制文件:
|
||||||
|
|
||||||
|
|
||||||
#### 安装最新版本
|
#### 安装最新版本
|
||||||
|
|
||||||
使用 Shell 命令:
|
使用 Shell 命令:
|
||||||
@@ -61,8 +57,7 @@ onMounted(() => {
|
|||||||
curl -sS https://starship.rs/install.sh | sh
|
curl -sS https://starship.rs/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
要更新 Starship ,运行上面的脚本 将会在不改动 Starship 配置文件的情况下升级版本
|
要更新 Starship ,运行上面的脚本 将会在不改动 Starship 配置文件的情况下升级版本 将会在不改动 Starship 配置文件的情况下升级版本
|
||||||
|
|
||||||
|
|
||||||
#### 通过软件包管理器安装
|
#### 通过软件包管理器安装
|
||||||
|
|
||||||
@@ -78,8 +73,7 @@ onMounted(() => {
|
|||||||
winget install starship
|
winget install starship
|
||||||
```
|
```
|
||||||
|
|
||||||
1. 将初始化脚本添加到您的 shell 的配置文件中:
|
2. 将初始化脚本添加到您的 shell 的配置文件中:
|
||||||
|
|
||||||
|
|
||||||
#### Bash
|
#### Bash
|
||||||
|
|
||||||
@@ -91,7 +85,6 @@ onMounted(() => {
|
|||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Fish
|
#### Fish
|
||||||
|
|
||||||
在 `~/.config/fish/config.fish` 的最后,添加以下内容:
|
在 `~/.config/fish/config.fish` 的最后,添加以下内容:
|
||||||
@@ -102,7 +95,6 @@ onMounted(() => {
|
|||||||
starship init fish | source
|
starship init fish | source
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Zsh
|
#### Zsh
|
||||||
|
|
||||||
在 `~/.zshrc` 的最后,添加以下内容:
|
在 `~/.zshrc` 的最后,添加以下内容:
|
||||||
@@ -113,16 +105,14 @@ onMounted(() => {
|
|||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### PowerShell
|
#### PowerShell
|
||||||
|
|
||||||
将以下内容添加到 `Microsoft.PowerShell_profile.ps1`。 你可以在 PowerShell 通过 `$PROFILE` 变量来查询文件的位置。 对于 -Nix 来说,通常文件路径是 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 或 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`。
|
Add the following to the end of `Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the `$PROFILE` variable in PowerShell. 将以下内容添加到 `Microsoft.PowerShell_profile.ps1`。 你可以在 PowerShell 通过 `$PROFILE` 变量来查询文件的位置。 对于 -Nix 来说,通常文件路径是 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 或 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
Invoke-Expression (&starship init powershell)
|
Invoke-Expression (&starship init powershell)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Ion
|
#### Ion
|
||||||
|
|
||||||
在 `~/.config/ion/initrc` 的最后,添加以下内容:
|
在 `~/.config/ion/initrc` 的最后,添加以下内容:
|
||||||
@@ -133,7 +123,6 @@ onMounted(() => {
|
|||||||
eval $(starship init ion)
|
eval $(starship init ion)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Elvish
|
#### Elvish
|
||||||
|
|
||||||
> [!WARNING] Only elvish v0.18 or higher is supported.
|
> [!WARNING] Only elvish v0.18 or higher is supported.
|
||||||
@@ -145,8 +134,8 @@ onMounted(() => {
|
|||||||
|
|
||||||
eval (starship init elvish)
|
eval (starship init elvish)
|
||||||
```
|
```
|
||||||
For elvish versions prior to v0.21.0 the config file might instead be `~/.elvish/rc.elv`
|
|
||||||
|
|
||||||
|
For elvish versions prior to v0.21.0 the config file might instead be `~/.elvish/rc.elv`
|
||||||
|
|
||||||
#### Tcsh
|
#### Tcsh
|
||||||
|
|
||||||
@@ -158,10 +147,10 @@ onMounted(() => {
|
|||||||
eval `starship init tcsh`
|
eval `starship init tcsh`
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Nushell
|
#### Nushell
|
||||||
|
|
||||||
> [!WARNING] This will change in the future. 仅支持 Nushell v0.96+。
|
> [!WARNING] This will change in the future.
|
||||||
|
> 仅支持 Nushell v0.96+。
|
||||||
|
|
||||||
将以下内容添加到你的 Nushell 配置文件的末尾(在 Nushell 中运行 `$nu.config-path` 可以找到该文件):
|
将以下内容添加到你的 Nushell 配置文件的末尾(在 Nushell 中运行 `$nu.config-path` 可以找到该文件):
|
||||||
|
|
||||||
@@ -170,7 +159,6 @@ onMounted(() => {
|
|||||||
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Xonsh
|
#### Xonsh
|
||||||
|
|
||||||
在 `~/.xonshrc` 的最后,添加以下内容:
|
在 `~/.xonshrc` 的最后,添加以下内容:
|
||||||
@@ -181,7 +169,6 @@ onMounted(() => {
|
|||||||
execx($(starship init xonsh))
|
execx($(starship init xonsh))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Cmd
|
#### Cmd
|
||||||
|
|
||||||
您需要使用 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 与 Cmd. 将以下文件添加到文件 `starship.lua` 中,并将此文件放置在 Clink脚本目录中:
|
您需要使用 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 与 Cmd. 将以下文件添加到文件 `starship.lua` 中,并将此文件放置在 Clink脚本目录中:
|
||||||
|
|||||||
Reference in New Issue
Block a user