.. | ||
README.md |
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.
🚀 安装
前置要求
- A Nerd Font installed and enabled in your terminal (for example, try the Fira Code Nerd Font).
开始安装
-
安装 starship 二进制文件:
安装最新版本
下载预构建的二进制文件,使用 Shell 命令:
curl -fsSL https://starship.rs/install.sh | bash
直接从 crates.io 获取源代码编译:
cargo install starship
通过软件包管理器安装
使用 Homebrew
brew install starship
使用 Scoop:
scoop install starship
-
将初始化脚本添加到您的 shell 的配置文件:
Bash
在
~/.bashhrc
的最后,添加以下内容:# ~/.bashrc eval "$(starship init bash)"
Fish
在
~/.config/fish/config.fish
的最后,添加以下内容:# ~/.config/fish/config.fish starship init fish | source
Zsh
在
~/.zshrc
的最后,添加以下内容:# ~/.zshrc eval "$(starship init zsh)"
PowerShell
将以下内容添加到
~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
(或~/.config/powershell/Microsoft.PowerShell_profile.ps1
,对于 *nix 系统):Invoke-Expression (&starship init powershell)
Ion
在
~/.config/ion/initrc
的最后,添加以下内容:# ~/.config/ion/initrc eval $(starship init ion)
🤝 贡献
我们一直在寻找贡献者!你都可以参与贡献 ** 不论你的技能如何 **。 如果您希望快速为项目作出贡献,请尝试解决 good first issue。
如果您有兴趣贡献于 Starship,请查看我们的贡献指南。 另外,你可以自由加入我们的 Discord 服务器 。 👋
Code Contributors
This project exists thanks to all the people who contribute. [Contribute].
Financial Contributors
Become a financial contributor and help us sustain our community. [Contribute]
Individuals
Organizations
Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]
💭该项目受以下项目启发
请参考这些曾经为 Starship 提供启发的工程。 🙏
-
denysdovhan/spaceship-prompt - A ZSH prompt for astronauts.
-
denysdovhan/robbyrussell-node - Cross-shell robbyrussell theme written in JavaScript.
-
reujab/silver - A cross-shell customizable powerline-like prompt with icons.
📝 License
Copyright © 2019-present, Starship Contributors.
This project is ISC licensed.