home | heroImage | heroText | tagline | actionText | actionLink | features | footer | metaTitle | description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
true |
/logo.svg |
Il prompt minimalista, super veloce e infinitamente personalizzabile per qualsiasi shell! |
Inizia → |
./guide/ |
|
Licenza ISC | Copyright © 2019-present Starship Collaboratori |
Starship: Cross-Shell Prompt |
Starship è il prompt minimalista, super veloce ed estremamente personalizzabile per qualsiasi shell! Mostra le informazioni di cui hai bisogno, rimanendo elegante e minimale. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. |
- Un Nerd Font installato e abilitato nel tuo terminale.
-
Installa il binario starship:
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.
Con Homebrew:
brew install starship
Con Scoop:
scoop install starship
-
Aggiungi lo script di inizializzazione al file di configurazione della shell:
Aggiungi quanto segue alla fine di
~/.bashrc
:# ~/.bashrc eval "$(starship init bash)"
Aggiungi quanto segue alla fine di
~/.config/fish/config.fish
:# ~/.config/fish/config.fish starship init fish | source
Aggiungi quanto segue alla fine di
~/.zshrc
:# ~/.zshrc eval "$(starship init zsh)"
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)
Aggiungi quanto segue alla fine di
~/.config/ion/initrc
:# ~/.config/ion/initrc eval $(starship init ion)
::: warning È supportato solo elvish v0.18 o superiore. :::
Aggiungi quanto segue alla fine di
~/.elvish/rc.elv
:# ~/.elvish/rc.elv eval (starship init elvish)
Aggiungi quanto segue alla fine di
~/.tcshrc
:# ~/.tcshrc eval `starship init tcsh`
::: warning Questo cambierà in futuro. Only Nushell v0.60+ is supported. ::: Run the following:
mkdir ~/.cache/starship starship init nu | save ~/.cache/starship/init.nu
And add the following to the end of your Nushell configuration (find it by running
$nu.config-path
):mkdir ~/.cache/starship starship init nu | save ~/.cache/starship/init.nu source ~/.cache/starship/init.nu
Aggiungi quanto segue alla fine di
~/.xonshrc
:# ~/.xonshrc execx($(starship init xonsh))
You need to use Clink (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"))()