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

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

注重兼容性

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

Rust 制造

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

可自定义

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

快速安装

  1. 安装 starship 二进制文件:

    Install Latest Version

    With Shell:

    curl -fsSL https://starship.rs/install.sh | bash
    

    Install via Package Manager

    With Homebrew:

    brew install starship
    

    With Scoop:

    scoop 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)
    

    Ion

    Add the following to the end of ~/.config/ion/initrc:

    # ~/.config/ion/initrc
    
    eval $(starship init ion)