Theme System
Astra uses a theme system to control how the shell prompt looks. Themes define the identity, symbols, and enabled prompt sections.
Available Themes
- Crimson - Default Astra theme with a red terminal aesthetic.
- Midnight - Minimal dark theme.
- Matrix - Compact developer-focused theme.
- Obsidian - Reduced prompt with fewer elements.
Selecting a Theme
Change the theme in:
~/.astrarc
Example:
[general] theme = "midnight"
Prompt Components
Themes can control the following prompt sections:
- User name
- Hostname
- Current directory
- Git branch information
- Current time
- Prompt symbol
Creating Custom Themes
Custom themes can be added by extending Astra's theme system.
src/theme.rs
A theme contains:
name prompt_symbol show_user show_hostname show_directory show_git show_time
Design Philosophy
Astra themes are designed around clarity and speed. The prompt should provide useful information without becoming distracting.