mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
780816926f
Have fixed a minor typo in the FAQs to use the `--help` flag rather than the `--version` flag.
home, heroImage, actionText, actionLink, footer
| home | heroImage | actionText | actionLink | footer |
|---|---|---|---|---|
| true | /logo.svg | 入门 → | /guide/ | ISC Licensed | Copyright © 2019-present Starship Contributors |
注重兼容性
能在各种常见的 Shell 上运行。 尝试着在各种地方使用它吧!
Rust 制造
具有 Rust 独树一帜的速度与安全性。
可自定义
每个小细节都可以按您喜欢的自定义,不论是最小化以求速度,还是最大化以获得最完善的功能。
快速安装
-
安装 starship 二进制文件:
如果您不使用下面的平台,你可以**下载预编译的可执行文件**
Homebrew
$ brew install starshipRust (v1.38 or higher)
$ cargo install starshipArch Linux (AUR)
Starship可在AUR下以
starship"之名使用 使用yay或你最偏爱的AUR helper来安装。$ yay -S starshipNix (unstable)
$ nix-env --install starshipTermux
$ pkg 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(或者~/.config/powershell/Microsoft.PowerShell_profile.ps1on -Nix)到:# ~\Documents\PowerShell\Profile.ps1 Invoke-Expression (&starship init powershell)