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