Spaceship is a Zsh prompt theme that shows context at the command line. It can surface git status, language runtimes, containers, and other session details you configure.
Overview
Spaceship replaces the default Zsh prompt with a theme built to stay readable while surfacing useful context. The prompt line appears before each command and can reflect the current directory, user and host, and repository state for Git and Mercurial.
It can display runtime and tooling context for many stacks, including Node.js, Rust, Python, Ruby, Swift, Go, and PHP. Optional segments can show Docker and Kubernetes details, package versions from tools such as npm and cargo, battery status, and indicators for background jobs.
Default behavior needs little setup after installation, while most sections and appearance can be tuned through configuration. Install paths include package managers, Zsh framework integrations, and manual sourcing from a theme file in your shell startup.
Per-directory configuration and custom sections are supported for teams that want prompts tailored to specific projects or workflows.
Key features
- Git and Mercurial repository status
- Multi-language runtime version segments
- Docker and Kubernetes context display
- Package manager version indicators
- Battery level and charging status
- Background job indicator
- User-configurable custom sections
- Wide installer and framework integration support
Use cases
- Richer default Zsh prompt
- Per-project prompt customization
- Dev environment status at a glance
- Oh My Zsh or Prezto theme swap