Back to Starship

README

docs/de-DE/README.md

1.25.13.6 KB
Original Source
<script setup> import { onMounted } from 'vue' onMounted(() => { const urlParams = new URLSearchParams(window.location.search) if (urlParams.has('uwu') || urlParams.has('kawaii')) { const img = document.querySelector('.VPHero .VPImage.image-src') img.classList.add('uwu') img.src = '/logo-uwu.png' img.alt = 'Kawaii Starship Logo by @sawaratsuki1004' } }) </script> <video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4"> </video>

Voraussetzungen

  • Eine Nerd Font installiert und aktiviert in deinem Terminal.

Schnellinstallation

  1. Installiere die Binärversion von starship:

    Neueste Version installieren

    Mit Shell:

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

    Führe das Skript oben erneut aus, um Starship selbst zu aktualisieren. Die vorhandene Version wird ersetzt, ohne dass deine Starship-Konfiguration verloren geht.

    Installation mithilfe eines Paket-Managers

    Mit Homebrew:

    sh
    brew install starship
    

    Mit Winget:

    powershell
    winget install starship
    
  2. Füge das init-Skript zur Konfigurationsdatei deiner Shell hinzu:

    Bash

    Füge dies ans Ende von ~/.bashrc:

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

    Fish

    Trage folgendes am Ende der ~/.config/fish/config.fish ein:

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

    Zsh

    Trage folgendes am Ende der ~/.zshrc ein:

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

    PowerShell

    Füge das Folgende ans Ende von Microsoft.PowerShell_profile.ps1 an. Du kannst den Speicherort dieser Datei überprüfen, indem du die $PROFILE Variable in PowerShell abfragst. Normalerweise ist der Pfad ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 oder ~/.config/powershell/Microsoft.PowerShell_profile.ps1 auf -Nix.

    sh
    Invoke-Expression (&starship init powershell)
    

    Ion

    Trage folgendes am Ende der ~/.config/ion/initrc ein:

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

    Elvish

    [!WARNUNG] Nur elvish v0.18 oder höher wird unterstützt.

    Add the following to the end of ~/.config/elvish/rc.elv (%AppData%\elvish\rc.elv on Windows):

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

    For elvish versions prior to v0.21.0 the config file might instead be ~/.elvish/rc.elv

    Tcsh

    Trage folgendes am Ende von ~/.bashrc ein:

    sh
    # ~/.tcshrc
    
    eval `starship init tcsh`
    

    Nushell

    [!WARNUNG] Dies wird sich in Zukunft ändern. Nur Nushell v0.96+ wird unterstützt.

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

    sh
    mkdir ($nu.data-dir | path join "vendor/autoload")
    starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
    

    Xonsh

    Füge folgendes an das Ende von ~/.xonshrc hinzu:

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

    ⌘ Cmd

    Du musst Clink (v1.2.30+) mit Cmd verwenden. Trage folgendes in eine neue Datei namens starship.lua hinzu und lege diese Datei im Clink Scripts Verzeichnis ab:

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