Skip to main content

✦ Synth-Shell Theme Studio (synth-shell-theme)

CI PyPI Release Python 3.10+ Platform License: MIT

Interactive 256-color Prompt Theme Picker (64 themes), Dual Powerline Separator Editor (48 presets + 60+ Nerd Font glyphs), Runtime Speed Optimizer, and Live Web Studio for synth-shell.

Built with 100% Python >= 3.10 standard library — zero external runtime dependencies.

Synth-Shell Theme Studio — Curated 256-Color Prompt Palettes and Dual Powerline Separators


Features

  • 64 Curated 256-Color Prompt Themes: From Tokyo Night, Catppuccin Mocha/Latte/Frappé/Mauve, Dracula Punch, Rose Pine, Kanagawa, Everforest, Gruvbox, and Cyberpunk Edgerunners to Cloud Ops, GitHub Dark, and Minimal Mono.
  • Side-by-Side Terminal UI (synth-shell-theme): 2-column 256-color live terminal preview rendering both 3-segment and 6-segment DevOps prompts (host · pwd · git · pyenv · tf · kube), live search (/term), high-contrast white-text mode ([f]), and 1-key undo ([u]).
  • Dual Powerline Separator Editor (synth-shell-separator or synth-shell-theme sep): Mix independent internal (separator_char) and ending (separator_char_end) glyphs across 48 curated presets in 6 categories plus a 60+ Nerd Font Character Matrix.
  • Live Browser Web Studio (synth-shell-theme web): Local HTTP studio (http://127.0.0.1:7778) — also tryable as a static browser showcase (synth-shell-theme export-web docs/index.html) — with a sticky live workbench (Left + Right RPROMPT bars), drag-and-drop segment reordering across 21 segments, click-to-edit inline segment colors, 1-click Copy CLI sharing, custom TrueColor theme creator, and backup history.
  • Unified Color Ecosystem, Starship Export, SSH Deploy & External Theme Importer: Sync your active palette to fzf (FZF_DEFAULT_OPTS), LS_COLORS, tmux, and WezTerm (wezterm-theme.lua) via --sync-ecosystem, export any of the 64 themes + dual separators to starship.toml (export-starship), deploy your patched prompt to remote Linux servers in 1 command without Python/Git (ssh-install user@host), or import palettes from Pywal, Base16 YAML, Ghostty, Kitty, Alacritty, and Windows Terminal (import-theme).
  • Idempotent Runtime, Speed & Modern Terminal Patches (synth-shell-theme init):
    1. Zero-fork segment renderer (zero_fork_render): Eliminates ~15–25 subshell forks per Enter via pure-Bash color/format variable lookups.
    2. Zero-subshell Kubernetes context, namespace & 🚨 prod warning (kube_fast / kube_namespace_prod): Reads $KUBECONFIG / ~/.kube/config directly in pure Bash (<1 ms, removes yq dependency, shortens GKE context names, appends active (namespace), and highlights production clusters in red with 🚨).
    3. Single-pass Git + WSL2/Monorepo + Advanced State + Dynamic Colors (git_single_pass / git_wsl_fast / git_advanced_state): Consolidates 3 git status calls into one, shows exact ↑N ↓M counts plus REBASE, MERGE, CHERRY, BISECT, and worktree (⎇) state in pure Bash, optionally colors GIT dynamically (amber dirty / red rebase), auto-skips untracked scans on WSL2 /mnt/*, supports --git-timeout, optional --async-git background cache (/dev/shm), and --max-git branch truncation.
    4. 24 Zero-Fork Telemetry, Dev, VCS & Custom Segments: USER, HOST (with optional SSH hostname color hashing), PWD (with --pwd-style fish), GIT, JJ (Jujutsu VCS), PYENV, TF, KUBE, CLOCK, STATUS, DURATION, AWS, GCP, DOCKER, NODE, SSH, JOBS, DIRENV, SHLVL/NIX, RUST, GO, BATTERY, SUDO, and CUSTOM.
    5. Right-Aligned Top Prompt (right_prompt), OSC 133, OSC 7 CWD & OSC 9/99 Notifications: Pure-Bash RPROMPT top bar (--right-format, --right-fill), native OSC 133;A/B/C/D;<exit> prompt navigation, OSC 7 directory inheritance for new tabs/splits in WezTerm/Ghostty/Kitty/Windows Terminal, and desktop notifications for slow commands (--notify-sec).
    6. Accurate Virtualenv & Conda (pyenv_enhanced): Pure-Bash $VIRTUAL_ENV_PROMPT, pyvenv.cfg prompt, $CONDA_DEFAULT_ENV, parent-dir naming for .venv, and --max-pyenv truncation.
    7. Independent Ending Separator (dual_separator) & 256-Color Parity (color_256_parity): Supports separator_char_end, 0–255 & all 16 named colors, and italic/regular text styles.
    8. Safe PROMPT_COMMAND Chaining & TrueColor 24-bit (hook_chaining / truecolor_24bit): Chains PROMPT_COMMAND (Bash 5.1+ arrays & strings) and moves color reset to PS0 (no trap DEBUG hijacking — 100% compatible with direnv, zoxide, atuin, ble.sh, mise, and VS Code), supports exact #RRGGBB TrueColor with automatic 256-color fallback, responsive compact layout on narrow tmux/VS Code splits (--compact-width), and set -u safety.
    9. Unicode PS1 Guard (utf8_ps1_guard), Non-Interactive Safety (interactive_guard), Terminal Mode Sanitizer (terminal_sanitize), doctor --fix & Greeter Fixes: Prevents \uE0B0 turning into usernameE0B0 under LC_ALL=C, protects scp/sftp/rsync, automatically clears leaked SSH/TUI mouse tracking (35;col;rowM) & focus events on prompt return, auto-repairs CRLF/patches with doctor --fix, adds --ascii-safe, --sync-root, --sync-greeter, plus AMD k10temp/Tctl CPU temp & ZFS ARC RAM fixes for synth-shell-greeter.
  • Safe Atomic Writes & Backups: Preserves your custom layout, padding, and Git symbols when switching colors, with automatic timestamped backups in ~/.config/synth-shell/backups/ and portable JSON presets (export / import).

Screenshots

Interactive 2-Column Terminal Picker (synth-shell-theme)

Browse all 64 palettes side-by-side in your terminal with live 256-color swatches, 3-segment & 6-segment DevOps prompt previews, instant /search, and 1-key theme switching:

Interactive 2-Column Terminal Theme Picker (synth-shell-theme)

Live Browser Web Studio (synth-shell-theme web)

Prefer a visual workbench? Launch the zero-dependency local Web Studio to preview themes, mix dual Powerline separators, reorder prompt segments, and manage runtime speed patches & backups in 1 click:

Synth-Shell Theme Web Studio — 64 Color Themes and Sticky Live Prompt Workbench

Dual Separators & 48 Curated Presets

Web Studio — Dual Powerline Separators Tab
Segment Toggles, Runtime Optimizer & Backups

Web Studio — Layout, Segments and Runtime Optimizer Tab

60+ Nerd Font & Dual Separator Cheat-Sheet (synth-shell-separator --palette)

Mix any internal divider (e.g. rounded capsule, diagonal slant, wave, pixel) with an independent ending cap (e.g. classic arrow, lightning bolt, diamond sparkle):

60+ Nerd Font Character Palette and Dual Separator Mix Examples


Installation

From PyPI (pipx, uv, or pip)

# Recommended: pipx
pipx install synth-shell-theme

# Or via uv (persistent tool install)
uv tool install synth-shell-theme

# Zero-install instant run with uvx
uvx synth-shell-theme

# Or via pip
pip install --user synth-shell-theme

Local Clone / Editable Development Install

git clone https://github.com/mvsoares/synth-shell-theme.git
cd synth-shell-theme
pipx install -e . --force

Both synth-shell-theme (primary CLI) and synth-shell-separator (dedicated separator editor) are installed onto your PATH.

Initialize Runtime Enhancements

After installing synth-shell (or use --install to install upstream synth-shell automatically), apply the 4 runtime speed & compatibility patches once:

synth-shell-theme init
# Or install upstream synth-shell + patch + apply Tokyo Night (#12):
synth-shell-theme init --install --apply tokyo-night

Quick Start

1. Interactive Terminal Picker (TUI)

synth-shell-theme

Keyboard shortcuts inside the TUI:

  • 1–64 or theme name/slug — Apply theme immediately
  • n / p / g <page> — Next, previous, or jump to page
  • /query — Filter themes by name, slug, or badge (c to clear)
  • s — Open the interactive Dual Separator & 60+ Glyph Editor
  • f — Toggle High-Contrast White Text (--force-white-text)
  • k — Toggle Keep Current Input Color (--keep-input)
  • w — Launch the Live Web Studio in your browser
  • b / u — Save a manual backup or undo/restore the latest backup
  • r — Apply a random theme

2. Live Browser Web Studio

synth-shell-theme web
# Custom port or headless mode:
synth-shell-theme web --port 7778 --no-browser

3. Direct CLI Commands

# List all 64 themes with 256-color Host/PWD/Git swatches
synth-shell-theme --list

# Apply a theme by number, name, or slug
synth-shell-theme --apply 12
synth-shell-theme --apply catppuccin-mocha
synth-shell-theme --apply dracula-punch --force-white-text --keep-input

# Dual Powerline & Nerd Font separators
synth-shell-theme --dual round arrow        # Rounded bubbles inside + classic triangle cap
synth-shell-theme --dual slant zap          # Cyberpunk slant inside + lightning bolt at end
synth-shell-separator --palette             # Print 60+ Nerd Font glyph cheat-sheet
synth-shell-separator                       # Launch dedicated interactive separator editor

# Prompt layout, truncation, prefix, text effect & telemetry segments
synth-shell-theme --format "HOST PWD GIT PYENV TF KUBE STATUS DURATION AWS" --two-line
synth-shell-theme --max-pwd 35 --max-git 22 --max-pyenv 18 --prefix auto --text-effect regular

# WSL2 / monorepo speed & ASCII-safe mode (SSH servers without Nerd Fonts)
synth-shell-theme --fast-git-wsl --git-timeout 400 --async-git
synth-shell-theme --ascii-safe

# Root prompt & synth-shell-greeter palette/monitor sync
synth-shell-theme --sync-root --sync-greeter --hide-swap

# Light / Dark toggle, live prompt benchmark & Bash tab-completion
synth-shell-theme --toggle-theme
synth-shell-theme bench --runs 20
eval "$(synth-shell-theme completion bash)"

# Right-aligned top bar (RPROMPT), OSC 133/7, Fish PWD, dynamic Git/SSH colors & notifications
synth-shell-theme --right-format "CLOCK BATTERY DURATION" --right-fill "─" --osc133 --osc7
synth-shell-theme --pwd-style fish --git-dynamic-color --ssh-host-color --notify-sec 30 --auto-theme

# Unified ecosystem sync (fzf + LS_COLORS + tmux + WezTerm), Starship export, SSH deploy & palette import
synth-shell-theme --sync-ecosystem
synth-shell-theme export-starship ~/.config/starship.toml
synth-shell-theme ssh-install user@my-server --ascii-safe
synth-shell-theme import-theme --pywal
synth-shell-theme import-theme ~/.config/ghostty/themes/tokyo-night

# Health check, auto-repair (`doctor --fix`), static GitHub Pages demo, backups & presets
synth-shell-theme doctor
synth-shell-theme doctor --fix
synth-shell-theme export-web docs/index.html
synth-shell-theme --restore
synth-shell-theme export my-prompt.json
synth-shell-theme import my-prompt.json

Reload your active Bash session after applying changes:

source ~/.config/synth-shell/synth-shell-prompt.sh

Environment Variables

Variable Description
SYNTH_SHELL_CONFIG_DIR Override configuration directory (defaults to ~/.config/synth-shell).

Development & Testing

python3 -m unittest discover -s tests -v

License

MIT License — see LICENSE.

Metadata

Release files for synth-shell-theme 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synth-shell-theme 1.4.0
File Size Uploaded Provenance Actions
synth_shell_theme-1.4.0.tar.gz 128.0 kB With provenance Details for synth_shell_theme-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for synth-shell-theme 1.4.0
File Interpreter ABI Platform Actions
synth_shell_theme-1.4.0-py3-none-any.whl Python 3 none any Details for synth_shell_theme-1.4.0-py3-none-any.whl

Total release size: 266.7 kB

Release files / synth_shell_theme-1.4.0.tar.gz

Download URL synth_shell_theme-1.4.0.tar.gz
Size 128.0 kB
Tags Source
SHA-256 checksum
How to use checksums
91714b583bec0564d76e95cee9581566771f30081d7af6ae3e0c2f029141df07
BLAKE2b-256 checksum
How to use checksums
4f6e1db6827f248a2249e90dca5c7e3295057e8d78eee9cedab5e7a6730e5740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / synth_shell_theme-1.4.0-py3-none-any.whl

Download URL synth_shell_theme-1.4.0-py3-none-any.whl
Size 138.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ddd3da4a86f98856a8aa50811ffa13b9bbad4f53132bdc7ad1834e0876b9481
BLAKE2b-256 checksum
How to use checksums
218241f778504bb1763afa39cb94fb778fd4ac796bdd45fff316778c7b806759
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for synth-shell-theme 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for synth_shell_theme-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page