Back to Starship

README

docs/es-ES/README.md

1.25.13.4 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>

Prerequisitos

  • Una Nerd Font instalada y habilitada en tu terminal.

Instalación rápida

  1. Instala el binario de Starship:

    Instalar la última versión

    Con el intérprete de comandos:

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

    Para actualizar Starship, vuelve a ejecutar el guión anterior. Reemplazará la versión actual sin tocar la configuración de Starship.

    Instalar vía un gestor de paquetes

    Con Homebew:

    sh
    brew install starship
    

    With Winget:

    powershell
    winget install starship
    
  2. Añade el guión de inicio al archivo de configuración de tu intérprete de comandos:

    Bash

    Añade la siguiente línea al final de ~/.bashrc:

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

    Fish

    Añade el siguiente código al final de ~/.config/fish/config.fish:

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

    Zsh

    Añade el siguiente código al final de ~/.zshrc:

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

    PowerShell

    Añade lo siguiente al final de Microsoft.PowerShell_profile.ps1. Puedes comprobar la ubicación de este archivo consultando la variable $PROFILE en PowerShell. Normalmente la ruta es ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 o ~/.config/powershell/Microsoft.PowerShell_profile.ps1 en -Nix.

    sh
    Invoke-Expression (&starship init powershell)
    

    Ion

    Añade el siguiente código al final de ~/.config/ion/initrc:

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

    Elvish

    [!WARNING] Only elvish v0.18 or higher is supported.

    :

    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

    Añade el siguiente código al final de ~/.tcshrc:

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

    Nushell

    [!WARNING] This will change in the future. Sólo se admite Nushell v0.96+.

    Agregue lo siguiente al final de su configuración de Nushell (encuéntrelo ejecutando $nu.config-path en 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

    Añade lo siguiente al final de ~/.xonshrc:

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

    Cmd

    Necesitas usar Clink (v1.2.30+) con Cmd. Añade lo siguiente a un archivo starship.lua y coloca este archivo en el directorio de scripts de Clink:

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