Minimale, super schnelle und unendlich anpassbare Prompt für jede Shell!
Kompatibel
Läuft mit den beliebtesten Shells auf den beliebtesten Betriebssystemen. Überall einsetzbar!
Rust-Powered
Bringt die Schnelligkeit und Zuverlässigkeit von Rust in deine Shell-Prompt.
Individualisierbar
Jedes noch so kleine Detail kann nach Deinen Wünschen angepasst werden, um die Eingabeaufforderung so minimal oder funktionsreich zu gestalten, wie Du es möchtest.
# Voraussetzungen
- Eine Nerd Font (opens new window) installiert und aktiviert in Ihrem Terminal.
# Schnellinstallation
Installiere die Binärversion von starship:
# Neueste Version installieren
Mit Shell:
curl -sS https://starship.rs/install.sh | sh
Um Starship selbst zu aktualisieren, lasse das Skript oben nochmal laufen. Es wird die vorhandene Version ersetzen, ohne die Konfiguration von Starship zu berühren.
# Installation mithilfe eines Paket-Managers
Mit Homebrew (opens new window):
brew install starship
scoop install starship
Führe den init Befehl zum Start der Shell aus:
# Bash
Füge dies ans Ende von
~/.bashrc
:# ~/.bashrc eval "$(starship init bash)"
# Fish
Trage folgendes am Ende der
~/.config/fish/config.fish
ein:# ~/.config/fish/config.fish starship init fish | source
# Zsh
Füge dies ans Ende von
~/.zshrc
:# ~/.zshrc eval "$(starship init zsh)"
# Powershell
Füge das folgende zum Ende von
Microsoft.PowerShell_profile.ps1
hinzu. Sie können den Speicherort dieser Datei überprüfen, indem Sie die$PROFILE
Variable in PowerShell abfragen. Normalerweise ist der Pfad~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
oder~/.config/powershell/Microsoft.PowerShell_profile.ps1
auf -Nix.Invoke-Expression (&starship init powershell)
# Ion
Trage folgendes am Ende der
~/.config/ion/initrc
ein:# ~/.config/ion/initrc eval $(starship init ion)
# Elvish
WARNING
Only elvish v0.18 or higher is supported.
Trage folgendes am Ende von
~/.config/fish/rc.elv
ein:# ~/.elvish/rc.elv eval (starship init elvish)
# Tcsh
Trage folgendes am Ende von
~/.bashrc
ein:# ~/.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-path
in Nushell):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
):source ~/.cache/starship/init.nu
# Xonsh
Füge folgendes an das Ende von
~/.xonshrc
hinzu:# ~/.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"))()