1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-04 19:03:38 +00:00
starship/docs/zh-CN/installing
Matan Kushner 4c3c75a0e9
docs(i18n): new Crowdin updates (#5992)
* New translations readme.md (Ukrainian)

* New translations readme.md (Dutch)

* New translations readme.md (Dutch)

* New translations readme.md (Dutch)

* New translations readme.md (Ukrainian)

* New translations readme.md (Turkish)

* New translations readme.md (Turkish)

* New translations readme.md (French)

* New translations readme.md (Spanish)

* New translations readme.md (Arabic)

* New translations readme.md (German)

* New translations readme.md (Italian)

* New translations readme.md (Japanese)

* New translations readme.md (Korean)

* New translations readme.md (Dutch)

* New translations readme.md (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Ukrainian)

* New translations readme.md (French)

* New translations readme.md (Spanish)

* New translations readme.md (Arabic)

* New translations readme.md (German)

* New translations readme.md (Italian)

* New translations readme.md (Japanese)

* New translations readme.md (Korean)

* New translations readme.md (Dutch)

* New translations readme.md (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Turkish)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations tokyo-night.md (Vietnamese)

* New translations gruvbox-rainbow.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations bracketed-segments.md (Vietnamese)

* New translations nerd-font.md (Vietnamese)

* New translations no-runtimes.md (Vietnamese)

* New translations plain-text.md (Vietnamese)

* New translations pure-preset.md (Vietnamese)

* New translations pastel-powerline.md (Vietnamese)

* New translations no-nerd-font.md (Vietnamese)

* New translations no-empty-icons.md (Vietnamese)

* New translations gruvbox-rainbow.md (Vietnamese)

* New translations jetpack.md (Vietnamese)

* New translations readme.md (French)

* New translations readme.md (French)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Arabic)

* New translations readme.md (Arabic)

* New translations readme.md (German)

* New translations readme.md (German)

* New translations readme.md (Italian)

* New translations readme.md (Italian)

* New translations readme.md (Japanese)

* New translations readme.md (Japanese)

* New translations readme.md (Korean)

* New translations readme.md (Korean)

* New translations readme.md (Dutch)

* New translations readme.md (Dutch)

* New translations readme.md (Norwegian)

* New translations readme.md (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Indonesian)

* New translations readme.md (Bengali)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (French)

* New translations readme.md (Spanish)

* New translations readme.md (German)

* New translations readme.md (Japanese)

* New translations readme.md (Russian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Vietnamese)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Russian)
2024-07-26 13:33:53 -04:00
..
README.md docs(i18n): new Crowdin updates (#5992) 2024-07-26 13:33:53 -04:00

高级安装

安装 Starship 需要两步:

  1. 下载 Starship 的可执行文件
  2. 修改 shell 的初始化脚本,将 Starship 设置为命令提示符

对大多数用户而言,按照主页上的步骤安装即可。 但有一些特殊系统上的安装步骤不同。

现有平台众多README 中无法全部展示,所以这里是社区中对其他平台 的一些安装说明。 找不到你的平台? 如果你知道怎么安装,请添加到这里!

Chocolatey

前置要求

按照 Chocolatey 安装页面上的步骤安装 Chocolatey。

安装

choco install starship

termux

前置要求

pkg install getconf

安装

curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.termux/files/usr/bin

Funtoo Linux

安装

在 Funtom Linux 上,可以通过 Portact 从 core-kit 安装启动:

emerge app-shells/starship

Nix

获取二进制文件

命令

nix-env -iA nixos.starship

声明式、单用户,使用 home-manager

请将以下内容添加到 home.nix 文件中以启用 programs.starship 模块

{
  programs.starship = {
    enable = true;
    # Configuration written to ~/.config/starship.toml
    settings = {
      # add_newline = false;

      # character = {
      #   success_symbol = "[➜](bold green)";
      #   error_symbol = "[➜](bold red)";
      # };

      # package.disabled = true;
    };
  };
}

然后运行

home-manager switch

声明式,全局,使用 NixOS

请将 pkgs.starship 添加至 configuration.nix 文件中的 environment.systemPackages 下,并运行

sudo nixos-rebuild switch