1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-26 11:42:36 +00:00
starship/docs/zh-CN
2019-12-14 18:46:45 -05:00
..
advanced-config docs(i18n): Update Crowdin translations (#517) 2019-10-21 23:42:08 +09:00
config docs(i18n): Update doc translations (#697) 2019-12-14 18:46:45 -05:00
faq docs: Correct a typo in the FAQs (#732) 2019-12-13 15:26:23 -05:00
guide docs(i18n): Update doc translations (#697) 2019-12-14 18:46:45 -05:00
README.md docs(i18n): Update doc translations (#697) 2019-12-14 18:46:45 -05:00

home heroImage actionText actionLink footer
true /logo.svg 入门 → /guide/ ISC Licensed | Copyright © 2019-present Starship Contributors

注重兼容性

能在各种常见的 Shell 上运行。 尝试着在各种地方使用它吧!

Rust 制造

具有 Rust 独树一帜的速度与安全性。

可自定义

每个小细节都可以按您喜欢的自定义,不论是最小化以求速度,还是最大化以获得最完善的功能。

快速安装

  1. 安装 starship 二进制文件:

    如果您不使用下面的平台,你可以**下载预编译的可执行文件**

    Homebrew

    $ brew install starship
    

    Rust (v1.38 or higher)

    $ cargo install starship
    

    Arch Linux (AUR)

    Starship可在AUR下以 starship"之名使用 使用yay或你最偏爱的AUR helper来安装。

    $ yay -S starship
    

    Nix (unstable)

    $ nix-env --install starship
    

    Termux

    $ pkg install starship
    
  2. 将初始化脚本添加到您的 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 on -Nix)到:

    # ~\Documents\PowerShell\Profile.ps1
    Invoke-Expression (&starship init powershell)