Skip to content

Zaawansowana Instalacja

Aby zainstalować starship, musisz zrobić dwie rzeczy:

  1. Pobrać plik wykonywalny starship na swój komputer
  2. Skonfigurować swoją powłokę żeby używała pliku wykonywalnego starship jako wiersza poleceń poprzez modyfikację skryptów inicjalizacyjnych

For most users, the instructions on the main page will work great. Jednakże, dla niektórych wyspecjalizowanych platform, potrzebne będą inne.

Istnieje tak wiele platform, że nie zmieściły się one w głównym pliku README.md, więc poniżej znajdują się instrukcje instalacji dla innych platform od społeczności. Nie ma tutaj Twojej? Jeśli się o tym dowiesz, dodaj je tutaj!

Chocolatey

Wymagania wstępne

Przejdź na stronę Instalacja Chocolatey i postępuj zgodnie z instrukcjami, aby zainstalować Chocolatey.

Instalacja

powershell
choco install starship

termux

Wymagania wstępne

sh
pkg install getconf

Instalacja

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

Funtoo Linux

Instalacja

Na Funtoo Linux, starship może być zainstalowany przez Portage z core-kit:

sh
emerge app-shells/starship

Nix

Getting the Binary

Imperatively

sh
nix-env -iA nixos.starship

Declarative, single user, via home-manager

Enable the programs.starship module in your home.nix file, and add your settings

nix
{
  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;
    };
  };
}

then run

sh
home-manager switch

Declarative, system-wide, with NixOS

Add pkgs.starship to environment.systemPackages in your configuration.nix, then run

sh
sudo nixos-rebuild switch