| name | x-theme |
| description | Change terminal command line prompt theme.
Globally manage the display style of all x-cmd interactive components.
Supports multiple theme vendors: theme, starship, ohmyposh.
**Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options).
see x-cmd skill for installation.
|
| license | Apache-2.0 |
| compatibility | POSIX Shell |
| metadata | {"author":"Li Junhao","version":"1.0.0","category":"x-cmd-extension","tags":["x-cmd","theme","prompt","shell","customization"]} |
x theme - Terminal Theme Manager
Change terminal command line prompt theme and manage display styles.
Quick Start
x theme
x theme ls
x theme use robby
Features
- Interactive Preview: Visual theme selection with
--app
- Multiple Vendors: Supports theme, starship, ohmyposh
- Feature Management: Enable/disable transient mode, emoji, symbols
- Font Integration: Install fonts for better theme rendering
- Shell Support: bash, zsh, fish, PowerShell
Commands
| Command | Description |
|---|
x theme | Open interactive theme preview (default) |
x theme --app | Open theme preview client |
x theme ls | List all themes |
x theme ls --info | List current environment theme info |
x theme use <name> | Use theme globally |
x theme unuse | Unset theme |
x theme try <name> | Try theme in current session |
x theme untry | Cancel try mode |
x theme current | Show current theme |
x theme update | Update theme resources |
x theme font | Install fonts |
x theme feature use <feature> | Enable feature globally |
x theme feature try <feature> | Try feature in current session |
Theme Vendors
| Vendor | Description |
|---|
theme | x-cmd built-in themes (el, ide, mini, l series) |
starship | Starship.rs cross-shell prompt |
ohmyposh | Oh-My-Posh prompt theme engine |
Examples
Basic Usage
x theme
x theme use robby
x theme use random
x theme use random "ys,ya,vitesse"
Try Before Apply
x theme try robby
x theme untry
Feature Management
x theme feature use transient_enable always
x theme feature use transient_enable never
x theme feature try emoji -t festival
Vendor-Specific Themes
x theme use --vendor starship gruvbox-rainbow
x theme use --vendor ohmyposh montys
Available Features
| Feature | Description |
|---|
transient_enable | Simplify prompt after command execution |
transient_cwd | Show cwd in transient mode |
transient_time | Show execution time in transient mode |
emoji | Enable emoji in prompt |
symbol | Use symbols in prompt |
zshplugin | Load zsh plugins |
Theme Series
| Series | Description |
|---|
el | Elegant line themes |
ide | IDE-style themes |
mini | Minimal themes |
l | Lightweight themes |
Related