home, heroImage, heroText, tagline, actionText, actionLink, features, footer, metaTitle, description
| 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. |
Prerequisiti
- Un Nerd Font installato e abilitato nel tuo terminale.
Installazione Veloce
-
Installa il binario starship:
Installa l'ultima Versione
Con Shell:
curl -sS https://starship.rs/install.sh | shPer aggiornare Starship stesso, riavviare lo script sopra. Sostituirà la versione corrente senza toccare la configurazione di Starship.
Installa via Package Manager
Con Homebrew:
brew install starshipCon Scoop:
scoop install starship -
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 | sourceZsh
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$PROFILEin PowerShell. Tipicamente il percorso è~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1oppure~/.config/powershell/Microsoft.PowerShell_profile.ps1su -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.61+ is supported.
:::
Add the following to to the end of your Nushell env file (find it by running
$nu.env-pathin Nushell):mkdir ~/.cache/starship starship init nu | save ~/.cache/starship/init.nuAnd add the following to the end of your Nushell configuration (find it by running
$nu.config-path):source ~/.cache/starship/init.nuXonsh
Aggiungi quanto segue alla fine di
~/.xonshrc:# ~/.xonshrc execx($(starship init xonsh))Cmd
You need to use Clink (v1.2.30+) with Cmd. Add the following to a file
starship.luaand place this file in Clink scripts directory:-- starship.lua load(io.popen('starship init cmd'):read("*a"))()