hero

Il prompt minimalista, super veloce e infinitamente personalizzabile per qualsiasi shell!

Inizia →

Prima la compatibilità

Funziona sulle shell e sui sistemi operativi più comuni. Usalo ovunque!

Scritto in Rust

Sfrutta la velocità e sicurezza di Rust, per rendere il tuo prompt il più veloce e il più affidabile.

Personalizzabile

Ogni più piccolo dettaglio è personalizzabile a piacere, per rendere questo prompt minimalista o ricco di tutte le funzionalità che desideri.

# Prerequisiti

# Installazione Veloce

  1. Installa il binario starship:

    # Installa l'ultima Versione

    Con Shell:

    curl -sS https://starship.rs/install.sh | sh
    

    Per aggiornare Starship stesso, riavviare lo script sopra. Sostituirà la versione corrente senza toccare la configurazione di Starship.

    # Installa via Package Manager

    Con Homebrew (opens new window):

    brew install starship
    

    With Winget (opens new window):

    winget install starship
    
  2. Aggiungi lo script di inizializzazione al file di configurazione della shell:

    # Bash

    Aggiungi quanto segue alla fine di ~/.bashrc:

    # ~/.bashrc
    
    eval "$(starship init bash)"
    

    # Fish

    Aggiungi quanto segue alla fine di ~/.config/fish/config.fish:

    # ~/.config/fish/config.fish
    
    starship init fish | source
    

    # Zsh

    Aggiungi quanto segue alla fine di ~/.zshrc:

    # ~/.zshrc
    
    eval "$(starship init zsh)"
    

    # Powershell

    Aggiungi quanto segue alla fine di Microsoft.PowerShell_profile.ps1. Puoi controllare la posizione di questo file interrogando la variabile $PROFILE in PowerShell. Tipicamente il percorso è ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 oppure ~/.config/powershell/Microsoft.PowerShell_profile.ps1 su -Nix.

    Invoke-Expression (&starship init powershell)
    

    # Ion

    Aggiungi quanto segue alla fine di ~/.config/ion/initrc:

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

    # Elvish

    WARNING

    Only elvish v0.18 or higher is supported.

    Aggiungi quanto segue alla fine di ~/.elvish/rc.elv:

    # ~/.elvish/rc.elv
    
    eval (starship init elvish)
    

    # Tcsh

    Aggiungi quanto segue alla fine di ~/.tcshrc:

    # ~/.tcshrc
    
    eval `starship init tcsh`
    

    # Nushell

    WARNING

    This will change in the future. Only Nushell v0.78+ is supported.

    Add the following to the end of your Nushell env file (find it by running $nu.env-path in Nushell):

    mkdir ~/.cache/starship
    starship init nu | save -f ~/.cache/starship/init.nu
    

    And add the following to the end of your Nushell configuration (find it by running $nu.config-path):

    use ~/.cache/starship/init.nu
    

    # Xonsh

    Aggiungi quanto segue alla fine di ~/.xonshrc:

    # ~/.xonshrc
    
    execx($(starship init xonsh))
    

    # Cmd

    You need to use Clink (opens new window) (v1.2.30+) with Cmd. Add the following to a file starship.lua and place this file in Clink scripts directory:

    -- starship.lua
    
    load(io.popen('starship init cmd'):read("*a"))()