mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-01-11 09:35:07 +00:00
New translations readme.md (Chinese Simplified)
This commit is contained in:
parent
63390d527b
commit
5550dbb0ce
@ -147,13 +147,11 @@
|
||||
/></a>
|
||||
</p>
|
||||
|
||||
[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
|
||||
|
||||
<h1></h1>
|
||||
|
||||
<img
|
||||
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
|
||||
alt="使用 iTerm 和 Snazzy 主题的 Starship"
|
||||
alt="Starship with iTerm2 and the Snazzy theme"
|
||||
width="50%"
|
||||
align="right"
|
||||
/>
|
||||
@ -168,7 +166,7 @@
|
||||
- **易用:** 安装快速 —— 几分钟就可上手。
|
||||
|
||||
<p align="center">
|
||||
<a href="https://starship.rs/config/"><strong>探索 Starship 文档</strong></a>
|
||||
<a href="https://starship.rs/config/"><strong>Explore the Starship docs ▶</strong></a>
|
||||
</p>
|
||||
|
||||
<a name="🚀-installation"></a>
|
||||
@ -181,12 +179,12 @@
|
||||
|
||||
### 步骤 1. 安装 Starship
|
||||
|
||||
请选择你的操作系统以查看合适的安装教程:
|
||||
Select your operating system from the list below to view installation instructions:
|
||||
|
||||
<details>
|
||||
<summary>Android</summary>
|
||||
|
||||
使用下列软件包管理器安装Starship:
|
||||
Install Starship using any of the following package managers:
|
||||
|
||||
| 软件包来源 | 指令 |
|
||||
| --------------------------------------------------------------------------------- | ---------------------- |
|
||||
@ -197,7 +195,7 @@
|
||||
<details>
|
||||
<summary>BSD</summary>
|
||||
|
||||
使用下列软件包管理器安装Starship:
|
||||
Install Starship using any of the following package managers:
|
||||
|
||||
| 发行版 | 软件包来源 | 指令 |
|
||||
| ----------- | -------------------------------------------------------- | --------------------------------- |
|
||||
@ -210,13 +208,13 @@
|
||||
<details>
|
||||
<summary>Linux</summary>
|
||||
|
||||
安装最新版本:
|
||||
Install the latest version for your system:
|
||||
|
||||
```sh
|
||||
curl -sS https://starship.rs/install.sh | sh
|
||||
```
|
||||
|
||||
或者,使用以下任一软件包管理器安装Starship:
|
||||
Alternatively, install Starship using any of the following package managers:
|
||||
|
||||
| 发行版 | 软件包来源 | 指令 |
|
||||
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
|
||||
@ -236,13 +234,13 @@ curl -sS https://starship.rs/install.sh | sh
|
||||
<details>
|
||||
<summary>macOS</summary>
|
||||
|
||||
安装最新版本:
|
||||
Install the latest version for your system:
|
||||
|
||||
```sh
|
||||
curl -sS https://starship.rs/install.sh | sh
|
||||
```
|
||||
|
||||
或者,使用以下任一软件包管理器安装Starship:
|
||||
Alternatively, install Starship using any of the following package managers:
|
||||
|
||||
| 软件包来源 | 指令 |
|
||||
| -------------------------------------------------------- | --------------------------------------- |
|
||||
@ -256,9 +254,9 @@ curl -sS https://starship.rs/install.sh | sh
|
||||
<details>
|
||||
<summary>Windows</summary>
|
||||
|
||||
在 [发布页](https://github.com/starship/starship/releases/latest) 下载 MSI 包来安装最新版。
|
||||
Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest).
|
||||
|
||||
使用下列软件包管理器安装Starship:
|
||||
Install Starship using any of the following package managers:
|
||||
|
||||
| 软件包来源 | 指令 |
|
||||
| -------------------------------------------------------------------------------------------- | --------------------------------------- |
|
||||
@ -272,7 +270,7 @@ curl -sS https://starship.rs/install.sh | sh
|
||||
|
||||
### 步骤 2. 设置您的 shell 以使用 Starship
|
||||
|
||||
配置你的终端来初始化 starship。 请从下面列表选择你的终端:
|
||||
Configure your shell to initialize starship. Select yours from the list below:
|
||||
|
||||
<details>
|
||||
<summary>Bash</summary>
|
||||
@ -288,7 +286,7 @@ eval "$(starship init bash)"
|
||||
<details>
|
||||
<summary>Cmd</summary>
|
||||
|
||||
您需要使用 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 与 Cmd. 在路径 `%LocalAppData%\clink\starship.lua` 下创建文件,输入以下内容
|
||||
您需要使用 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 与 Cmd. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents:
|
||||
|
||||
```lua
|
||||
load(io.popen('starship init cmd'):read("*a"))()
|
||||
@ -305,7 +303,7 @@ load(io.popen('starship init cmd'):read("*a"))()
|
||||
eval (starship init elvish)
|
||||
```
|
||||
|
||||
注意:仅支持 v0.18 及以上版本的 Elvish
|
||||
Note: Only Elvish v0.18+ is supported
|
||||
|
||||
</details>
|
||||
|
||||
@ -334,27 +332,27 @@ eval $(starship init ion)
|
||||
<details>
|
||||
<summary>Nushell</summary>
|
||||
|
||||
在您的 Nushell 环境文件的最后(使用 `$nu.env-path` 来获取它的路径),添加以下内容:
|
||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
||||
|
||||
```sh
|
||||
mkdir ~/.cache/starship
|
||||
starship init nu | save -f ~/.cache/starship/init.nu
|
||||
```
|
||||
|
||||
然后将以下内容添加到您 Nushell 配置文件的末尾(使用 `$nu.config-path` 来获取它的路径):
|
||||
然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
|
||||
|
||||
```sh
|
||||
使用 ~/.cache/starship/init.nu
|
||||
```
|
||||
|
||||
注意:仅支持 Nushell v0.78+
|
||||
Note: Only Nushell v0.78+ is supported
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>PowerShell</summary>
|
||||
|
||||
将以下内容添加到您 PowerShell 配置文件的末尾(通过运行 `$PROFILE` 来获取配置文件的路径)
|
||||
Add the following to the end of your PowerShell configuration (find it by running `$PROFILE`):
|
||||
|
||||
```powershell
|
||||
Invoke-Expression (&starship init powershell)
|
||||
@ -397,9 +395,9 @@ eval "$(starship init zsh)"
|
||||
|
||||
### 步骤 3. 配置 Starship
|
||||
|
||||
打开一个新的 Shell 实例,你应该就能看到漂亮的 Shell 新提示符了。 如果你对默认配置感到满意,那么开始使用吧!
|
||||
Start a new shell instance, and you should see your beautiful new shell prompt. If you're happy with the defaults, enjoy!
|
||||
|
||||
如果你想进一步配置 Starship,查阅下列内容:
|
||||
If you're looking to further customize Starship:
|
||||
|
||||
- **[配置](https://starship.rs/config/)**:学习如何配置 Starship 来调节提示符到你喜欢的样子。
|
||||
|
||||
@ -407,15 +405,15 @@ eval "$(starship init zsh)"
|
||||
|
||||
## 🤝 贡献
|
||||
|
||||
我们欢迎 **任何水平** 的参与者! 如果想练手,可以试着解决某个标记为 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue) 的议题。
|
||||
We are always looking for contributors of **all skill levels**! If you're looking to ease your way into the project, try out a [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue).
|
||||
|
||||
如果你精通非英语语言,请协助我们翻译并更新文档,非常感谢! 你可以在 [Starship Crowdin](https://translate.starship.rs/) 上参与翻译。
|
||||
If you are fluent in a non-English language, we greatly appreciate any help keeping our docs translated and up-to-date in other languages. If you would like to help, translations can be contributed on the [Starship Crowdin](https://translate.starship.rs/).
|
||||
|
||||
如果你想参与 Starship 项目,请查看我们的 [贡献指南](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)。 也欢迎加入我们的 [Discord 服务器](https://discord.gg/8Jzqu3T) 和大家打个招呼。 👋
|
||||
If you are interested in helping contribute to starship, please take a look at our [Contributing Guide](https://github.com/starship/starship/blob/master/CONTRIBUTING.md). Also, feel free to drop into our [Discord server](https://discord.gg/8Jzqu3T) and say hi. 👋
|
||||
|
||||
## 💭 该项目受以下项目启发
|
||||
|
||||
请看看这些之前的项目,他们启发了 Starship 项目。 🙏
|
||||
Please check out these previous works that helped inspire the creation of starship. 🙏
|
||||
|
||||
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – 为宇航员准备的 ZSH 提示符。
|
||||
|
||||
@ -425,17 +423,17 @@ eval "$(starship init zsh)"
|
||||
|
||||
## ❤️ 赞助商
|
||||
|
||||
通过 [成为赞助商 ](https://github.com/sponsors/starship)来支持这个项目。 您的名字或 LOGO 将在此处显示,并链接到您的网站。
|
||||
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
|
||||
|
||||
**支持者级别**
|
||||
**Supporter Tier**
|
||||
|
||||
- [Appwrite](https://appwrite.io/)
|
||||
|
||||
<p align="center">
|
||||
<br>
|
||||
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship 图标">
|
||||
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">
|
||||
</p>
|
||||
|
||||
## 📝 许可证
|
||||
|
||||
版权所有 © 2019 至今, [Starship 贡献者](https://github.com/starship/starship/graphs/contributors).<br /> 此项目使用 [ISC](https://github.com/starship/starship/blob/master/LICENSE) 许可.
|
||||
Copyright © 2019-present, [Starship Contributors](https://github.com/starship/starship/graphs/contributors).<br /> This project is [ISC](https://github.com/starship/starship/blob/master/LICENSE) licensed.
|
||||
|
Loading…
Reference in New Issue
Block a user