Files
website/content/posts/spaceship-distrobox.md
T
demian cc7ba433d4
Build & Deploy / deploy (push) Successful in 32s
Translate all posts to German with personal blog style
2026-06-06 19:25:28 +02:00

33 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
+++
date = '2026-01-04T20:33:45+01:00'
draft = false
title = 'Spaceship Distrobox Nie wieder die Übersicht verlieren'
[cover]
image = "/imgs/spaceship.png"
alt = "Offizielles Spaceship Rocket Logo"
caption = ""
+++
# In welcher Box bin ich grad nochmal?
Letztens ist mir aufgefallen: Ich hab ständig mehrere Terminal-Fenster offen, und irgendwann weiß ich nicht mehr, welches davon in ner **Distrobox** läuft und welches auf meinem Host-System ist. Kennt ihr das? Ihr wechselt zwischen Projekten, öffnet hier mal schnell ein Terminal, da mal eins und zack, ihr führt `apt install` im Host aus, obwohl ihr dachtet, ihr wärt in der Box.
Ja, mir ist das passiert. Mehrmals.
Also hab ich mir überlegt: Ich brauch was, das mir SOFORT zeigt, ob ich in ner Distrobox bin. Ich nutze **Spaceship Prompt** und hab ein Plugin dafür geschrieben, das genau das macht. Einfach, schlank, und es knallt mir den Containernamen direkt ins Prompt.
## Warum gibt's das?
Klar, für **Bash** oder **Starship Prompt** gibt's schon Tools, die anzeigen, ob man in nem Container steckt. Aber für **Spaceship Prompt** hab ich nix Passendes gefunden. Also hab ich's selbst gebaut.
### Was das Ding kann:
- **Sofort erkennbar**: Ich seh auf einen Blick, ob ich in ner Distrobox bin. Kein `echo $CONTAINER_ID` mehr.
- **Anpassbar**: Symbol, Farbe und Position kann ich ändern. Passt sich an mein Setup an.
- **Minimaler Aufwand**: Ich nutze Spaceship eh schon das Plugin einzubauen hat mich keine 5 Minuten gekostet.
### Wo gibt's das?
Installation und Konfiguration gibt's im [Spaceship Distrobox Plugin Repository](https://github.com/pyte1/spaceship-distrobox).