mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
2.5 KiB
2.5 KiB
home, heroImage, heroText, tagline, actionText, actionLink, features, footer, metaTitle, description
| home | heroImage | heroText | tagline | actionText | actionLink | features | footer | metaTitle | description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| true | /logo.svg | The cross-shell prompt for astronauts | 入门 → | ./guide/ |
|
ISC Licensed | Copyright © 2019-present Starship Contributors | Starship:可用于各种 Shell 的提示符 | Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, and Powershell. |
快速安装
-
安装 starship 二进制文件:
安装最新版本
使用 Shell 命令:
curl -fsSL https://starship.rs/install.sh | bash通过软件包管理器安装
使用 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 | sourceZsh
在
~/.zshrc的最后,添加以下内容:# ~/.zshrc eval "$(starship init zsh)"Powershell
在
~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1(对于 *nix 系统是~/.config/powershell/Microsoft.PowerShell_profile.ps1)的最后,添加以下内容:# ~\Documents\PowerShell\Profile.ps1 Invoke-Expression (&starship init powershell)Ion
在
~/.config/ion/initrc的最后,添加以下内容:# ~/.config/ion/initrc eval $(starship init ion)