2019-09-18 15:43:59 +00:00
|
|
|
|
<p align="center">
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<img
|
2019-09-18 15:43:59 +00:00
|
|
|
|
width="400"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png"
|
2019-09-28 11:31:56 +00:00
|
|
|
|
alt="Starship – Cross-shell prompt" />
|
2019-09-18 15:43:59 +00:00
|
|
|
|
</p>
|
2020-04-03 16:35:39 +00:00
|
|
|
|
|
2019-09-18 15:43:59 +00:00
|
|
|
|
<p align="center">
|
2019-10-11 08:31:19 +00:00
|
|
|
|
<a href="https://github.com/starship/starship/actions"
|
|
|
|
|
><img
|
2020-04-03 16:35:39 +00:00
|
|
|
|
src="https://img.shields.io/github/workflow/status/starship/starship/Main workflow/master?label=workflow&style=flat-square"
|
2019-10-11 08:31:19 +00:00
|
|
|
|
alt="GitHub Actions workflow status" /></a>
|
|
|
|
|
<a href="https://crates.io/crates/starship"
|
2020-04-03 16:35:39 +00:00
|
|
|
|
><img
|
|
|
|
|
src="https://img.shields.io/crates/v/starship?style=flat-square"
|
|
|
|
|
alt="Crates.io version" /></a>
|
2019-10-11 08:31:19 +00:00
|
|
|
|
<a href="https://repology.org/project/starship/versions"
|
|
|
|
|
><img
|
2020-04-03 16:35:39 +00:00
|
|
|
|
src="https://img.shields.io/repology/repositories/starship?label=in%20repositories&style=flat-square"
|
2019-10-11 08:31:19 +00:00
|
|
|
|
alt="Packaging status" /></a
|
2019-10-21 14:42:08 +00:00
|
|
|
|
><br />
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<a href="https://discord.gg/8Jzqu3T"
|
2019-10-11 08:31:19 +00:00
|
|
|
|
><img
|
2020-04-03 16:35:39 +00:00
|
|
|
|
src="https://img.shields.io/discord/567163873606500352?label=discord&logoColor=white&style=flat-square"
|
2019-12-06 22:07:57 +00:00
|
|
|
|
alt="在 Discord 上聊天" /></a>
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<a href="https://twitter.com/StarshipPrompt"
|
|
|
|
|
><img
|
|
|
|
|
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
|
|
|
|
|
alt="Follow @StarshipPrompt on Twitter" /></a>
|
2019-09-18 15:43:59 +00:00
|
|
|
|
</p>
|
2019-10-11 08:31:19 +00:00
|
|
|
|
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<p align="center">
|
2019-10-21 14:42:08 +00:00
|
|
|
|
<a href="https://starship.rs/zh-TW/">網站</a>
|
2019-09-18 15:43:59 +00:00
|
|
|
|
·
|
2019-10-21 14:42:08 +00:00
|
|
|
|
<a href="#-安裝">安裝</a>
|
2019-09-18 15:43:59 +00:00
|
|
|
|
·
|
2019-10-21 14:42:08 +00:00
|
|
|
|
<a href="https://starship.rs/zh-TW/config/">設定</a>
|
2020-04-03 16:35:39 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
2019-10-11 08:31:19 +00:00
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://github.com/starship/starship/blob/master/README.md"
|
2020-04-03 16:35:39 +00:00
|
|
|
|
><img
|
|
|
|
|
height="20"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
|
|
|
|
|
alt="English" /></a>
|
2019-12-06 22:07:57 +00:00
|
|
|
|
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/starship/starship/blob/master/docs/ja-JP/guide/README.md"
|
|
|
|
|
><img
|
|
|
|
|
height="20"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-jp.png"
|
|
|
|
|
alt="日本語" /></a>
|
2019-12-06 22:07:57 +00:00
|
|
|
|
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/starship/starship/blob/master/docs/zh-TW/guide/README.md"
|
|
|
|
|
><img
|
|
|
|
|
height="20"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-tw.png"
|
|
|
|
|
alt="繁體中文" /></a>
|
2019-12-06 22:07:57 +00:00
|
|
|
|
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/starship/starship/blob/master/docs/ru-RU/guide/README.md"
|
|
|
|
|
><img
|
|
|
|
|
height="20"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ru.png"
|
|
|
|
|
alt="Русский" /></a>
|
2020-01-21 16:15:25 +00:00
|
|
|
|
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/starship/starship/blob/master/docs/de-DE/guide/README.md"
|
|
|
|
|
><img
|
|
|
|
|
height="20"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png"
|
|
|
|
|
alt="Deutsch" /></a>
|
2020-01-23 16:27:26 +00:00
|
|
|
|
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/starship/starship/blob/master/docs/zh-CN/guide/README.md"
|
|
|
|
|
><img
|
|
|
|
|
height="20"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-cn.png"
|
|
|
|
|
alt="简体中文" /></a>
|
2019-12-06 22:07:57 +00:00
|
|
|
|
|
2020-01-15 17:23:25 +00:00
|
|
|
|
<a href="https://translate.starship.rs/project/starship-prompt/es"
|
2020-04-03 16:35:39 +00:00
|
|
|
|
><img
|
|
|
|
|
height="20"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-es.png"
|
|
|
|
|
alt="Español" /></a>
|
2020-01-15 17:23:25 +00:00
|
|
|
|
|
2019-10-11 08:31:19 +00:00
|
|
|
|
<a href="https://translate.starship.rs/project/starship-prompt/fr"
|
2020-04-03 16:35:39 +00:00
|
|
|
|
><img
|
|
|
|
|
height="20"
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
|
|
|
|
|
alt="Français" /></a>
|
2019-10-11 08:31:19 +00:00
|
|
|
|
</p>
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
<h1></h1>
|
|
|
|
|
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<img
|
|
|
|
|
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
|
|
|
|
|
alt="Starship with iTerm2 and the Snazzy theme"
|
|
|
|
|
width="50%"
|
|
|
|
|
align="right" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**The minimal, blazing-fast, and infinitely customizable prompt for any shell!**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- **Fast:** it's fast – _really really_ fast! 🚀
|
|
|
|
|
- **Customizable:** configure every aspect of your prompt.
|
|
|
|
|
- **Universal:** works on any shell, on any operating system.
|
|
|
|
|
- **Intelligent:** shows relevant information at a glance.
|
|
|
|
|
- **Feature rich:** support for all your favorite tools.
|
|
|
|
|
- **Easy:** quick to install – start using it in minutes.
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
<p align="center">
|
2020-04-03 16:35:39 +00:00
|
|
|
|
<a href="https://starship.rs/"><strong>Explore the Starship docs ▶</strong></a>
|
2019-09-18 15:43:59 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
## 🚀 安裝
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
### 先決要求
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
- 一個已經安裝並在你的終端機內啟動的 [Powerline 字型](https://github.com/powerline/fonts) (例如,試試看 [Fira Code](https://github.com/tonsky/FiraCode))。
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
### 入門
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
1. 安裝 **starship** 執行檔:
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
|
2019-12-06 22:07:57 +00:00
|
|
|
|
#### Install Latest Version
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
|
2020-01-15 17:23:25 +00:00
|
|
|
|
##### From prebuilt binary, with Shell:
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
```sh
|
2019-12-14 23:46:45 +00:00
|
|
|
|
curl -fsSL https://starship.rs/install.sh | bash
|
2019-09-18 15:43:59 +00:00
|
|
|
|
```
|
|
|
|
|
|
2019-09-28 11:31:56 +00:00
|
|
|
|
|
2020-01-15 17:23:25 +00:00
|
|
|
|
##### From source on [crates.io](https://crates.io/):
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
cargo install starship
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
2019-12-06 22:07:57 +00:00
|
|
|
|
#### Install via Package Manager
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
|
2019-12-06 22:07:57 +00:00
|
|
|
|
##### With [Homebrew](https://brew.sh/):
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
```sh
|
2019-12-06 22:07:57 +00:00
|
|
|
|
brew install starship
|
2019-09-18 15:43:59 +00:00
|
|
|
|
```
|
|
|
|
|
|
2019-09-28 11:31:56 +00:00
|
|
|
|
|
2019-12-06 22:07:57 +00:00
|
|
|
|
##### With [Scoop](https://scoop.sh):
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-12-06 22:07:57 +00:00
|
|
|
|
```powershell
|
|
|
|
|
scoop install starship
|
2019-10-21 14:42:08 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
1. 將初始化腳本 (script) 加入你的 shell 的設定檔:
|
2019-09-28 11:31:56 +00:00
|
|
|
|
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
#### Bash
|
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
將以下內容放到 `~/.bashrc` 的結尾:
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
# ~/.bashrc
|
|
|
|
|
|
|
|
|
|
eval "$(starship init bash)"
|
|
|
|
|
```
|
|
|
|
|
|
2019-09-28 11:31:56 +00:00
|
|
|
|
|
2019-09-18 15:43:59 +00:00
|
|
|
|
#### Fish
|
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
將以下內容放到 `~/.config/fish/config.fish` 的結尾:
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
# ~/.config/fish/config.fish
|
|
|
|
|
|
2019-10-29 03:48:45 +00:00
|
|
|
|
starship init fish | source
|
2019-09-18 15:43:59 +00:00
|
|
|
|
```
|
|
|
|
|
|
2019-09-28 11:31:56 +00:00
|
|
|
|
|
2019-09-18 15:43:59 +00:00
|
|
|
|
#### Zsh
|
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
將以下內容放到 `~/.zshrc` 的結尾:
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
# ~/.zshrc
|
|
|
|
|
|
|
|
|
|
eval "$(starship init zsh)"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
2019-12-24 21:54:29 +00:00
|
|
|
|
#### PowerShell
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
將以下內容放到 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 的結尾 (或是在 -Nix 上的 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`):
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
```sh
|
|
|
|
|
Invoke-Expression (&starship init powershell)
|
|
|
|
|
```
|
|
|
|
|
|
2019-12-14 23:46:45 +00:00
|
|
|
|
|
|
|
|
|
#### Ion
|
|
|
|
|
|
|
|
|
|
Add the following to the end of `~/.config/ion/initrc`:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
# ~/.config/ion/initrc
|
|
|
|
|
|
|
|
|
|
eval $(starship init ion)
|
|
|
|
|
```
|
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
## 🤝 貢獻
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
我們歡迎具有**各式各樣能力**的貢獻者! 如果你正在尋找容易加入的方法,試試看標註為「[good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)」的 issue。
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
如果你對貢獻 Starship 有興趣,請看我們的 [貢獻指南](https://github.com/starship/starship/blob/master/CONTRIBUTING.md) 。 另外,請不用客氣加入我們的 [Discord 伺服器](https://discord.gg/8Jzqu3T) 並來問候一下。 👋
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
## 💭 發想來自
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
請看之前這些幫助我們創造 Starship 的前任作品。 🙏
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** - 給太空人的 ZSH 提示。
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** - 使用 Javascript 撰寫的跨 shell robbyrussell 主題。
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
- **[reujab/silver](https://github.com/reujab/silver)** - 一個跨 shell、可客製化、像 powerline 的圖案提示字元。
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
|
<br>
|
2019-09-28 11:31:56 +00:00
|
|
|
|
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">
|
2019-09-18 15:43:59 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
## 📝 許可
|
2019-09-18 15:43:59 +00:00
|
|
|
|
|
2019-10-21 14:42:08 +00:00
|
|
|
|
Copyright © 2019-present, [Starship Contributors](https://github.com/starship/starship/graphs/contributors).<br /> 這個專案使用 [ISC](https://github.com/starship/starship/blob/master/LICENSE) 許可。
|