1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-14 01:04:11 +00:00
starship/docs/zh-CN/guide
2020-04-06 14:48:26 -04:00
..
README.md docs(i18n): new Crowdin translations (#1047) 2020-04-06 14:48:26 -04:00

Starship – Cross-shell prompt

GitHub Actions workflow status Crates.io version Packaging status
加入 Discord Follow @StarshipPrompt on Twitter

网站 · 安装 · 配置

English   日本語   繁體中文   Русский   Deutsch   简体中文   Español   Français

使用 iTerm 和 Snazz 主题的 Starship

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.

Explore the Starship docs  ▶

🚀 安装

前置要求

开始安装

  1. 安装 starship 二进制文件:

    安装最新版本

    下载预构建的二进制文件,使用 Shell 命令:
    curl -fsSL https://starship.rs/install.sh | bash
    
    直接从 crates.io 获取源代码编译:
    cargo install starship
    

    通过软件包管理器安装

    使用 Homebrew
    brew install starship
    
    使用 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,对于 *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]

💭该项目受以下项目启发

Please check out these previous works that helped inspire the creation of starship. 🙏


Starship rocket icon

📝 License

Copyright © 2019-present, Starship Contributors.
This project is ISC licensed.