Starship – Cross-shell prompt

GitHub Actions workflow status Crates.io version Packaging status
加入 Discord Follow @StarshipPrompt on Twitter

网站 · 安装 · 配置

English   日本語   繁體中文   Русский   Deutsch   简体中文   Español   Français

使用 iTerm 和 Snazz 主题的 Starship **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.

Explore the Starship docs  ▶

## 🚀 安装 ### 前置要求 - 安装一种 [Powerline 字体](https://github.com/powerline/fonts)(如 [Fira Code](https://github.com/tonsky/FiraCode))并在您的终端启用 。 ### 开始安装 1. 安装 **starship** 二进制文件: #### 安装最新版本 ##### 下载预构建的二进制文件,使用 Shell 命令: ```sh curl -fsSL https://starship.rs/install.sh | bash ``` ##### 直接从 [crates.io](https://crates.io/) 获取源代码编译: ```sh cargo install starship ``` #### 通过软件包管理器安装 ##### 使用 [Homebrew](https://brew.sh/) ```sh brew install starship ``` ##### 使用 [Scoop](https://scoop.sh): ```powershell scoop install starship ``` 1. 将初始化脚本添加到您的 shell 的配置文件: #### Bash 在 `~/.bashhrc` 的最后,添加以下内容: ```sh # ~/.bashrc eval "$(starship init bash)" ``` #### Fish 在 `~/.config/fish/config.fish` 的最后,添加以下内容: ```sh # ~/.config/fish/config.fish starship init fish | source ``` #### Zsh 在 `~/.zshrc` 的最后,添加以下内容: ```sh # ~/.zshrc eval "$(starship init zsh)" ``` #### PowerShell 将以下内容添加到`~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (或`~/.config/powershell/Microsoft.PowerShell_profile.ps1`,对于 *nix 系统): ```sh Invoke-Expression (&starship init powershell) ``` #### Ion 在 `~/.config/ion/initrc` 的最后,添加以下内容: ```sh # ~/.config/ion/initrc eval $(starship init ion) ``` ## 🤝 贡献 我们一直在寻找贡献者!你都可以参与贡献 ** 不论你的技能如何 **。 如果您希望快速为项目作出贡献,请尝试解决 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)。 如果您有兴趣贡献于 Starship,请查看我们的[贡献指南](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)。 另外,你可以自由加入我们的 [Discord 服务器](https://discord.gg/8Jzqu3T) 。 👋 ### Code Contributors This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. ### Financial Contributors Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/starship/contribute)] #### Individuals #### Organizations Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/starship/contribute)] ## 💭该项目受以下项目启发 Please check out these previous works that helped inspire the creation of starship. 🙏 - **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** - A ZSH prompt for astronauts. - **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** - Cross-shell robbyrussell theme written in JavaScript. - **[reujab/silver](https://github.com/reujab/silver)** - A cross-shell customizable powerline-like prompt with icons.


Starship rocket icon

## 📝 License Copyright © 2019-present, [Starship Contributors](https://github.com/starship/starship/graphs/contributors).
This project is [ISC](https://github.com/starship/starship/blob/master/LICENSE) licensed.