synth-shell-theme 1.3.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- synth_shell_theme-1.3.9/LICENSE +21 -0
- synth_shell_theme-1.3.9/MANIFEST.in +5 -0
- synth_shell_theme-1.3.9/PKG-INFO +261 -0
- synth_shell_theme-1.3.9/README.md +228 -0
- synth_shell_theme-1.3.9/pyproject.toml +67 -0
- synth_shell_theme-1.3.9/setup.cfg +4 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/__init__.py +7 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/__main__.py +8 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/assets/studio.html +1920 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/cli.py +887 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/core.py +1695 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/ecosystem.py +537 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/patches.py +1853 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/paths.py +363 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/separators.py +320 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/server.py +506 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/01-screenshot-match.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/02-current-live-theme.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/03-dracula-punch.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/04-nord-ice.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/05-matrix-green.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/06-amber-heat.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/07-cloud-ops.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/08-catppuccin-mauve.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/09-solarized-night.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/10-gruvbox-dark.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/11-monokai-neon.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/12-tokyo-night.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/13-synthwave-pink.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/14-forest-mint.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/15-ruby-steel.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/16-ice-gold.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/17-aqua-slate.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/18-cyber-lime.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/19-lavender-sunset.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/20-minimal-mono.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/21-rose-pine.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/22-kanagawa.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/23-everforest.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/24-one-dark.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/25-ayu-dark.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/26-nightfox.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/27-palenight.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/28-cyberdream.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/29-moonlight.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/30-poimandres.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/31-tokyo-storm.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/32-catppuccin-mocha.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/33-nordic-aurora.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/34-horizon-synth.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/35-gruvbox-material.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/36-oxocarbon.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/37-catppuccin-latte.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/38-tokyo-twilight.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/39-solarized-ocean.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/40-vaporwave-sunset.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/41-deep-abyss.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/42-sakura-blossom.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/43-emerald-forest.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/44-vesper.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/45-cobalt-neon.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/46-desert-dunes.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/47-cyber-samurai.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/48-glacier-mint.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/49-carbon-titanium.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/50-matcha-latte.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/51-volcanic-magma.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/52-catppuccin-frappe.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/53-bioluminescence.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/54-mocha-caramel.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/55-neon-genesis.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/56-midnight-amethyst.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/57-andromeda.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/58-golden-velvet.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/59-miami-vice.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/60-zen-garden.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/61-google-cloud.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/62-github-dark.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/63-cyberpunk-edgerunners.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes/64-vscode-dark.conf +30 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/themes.py +580 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme/tui.py +632 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme.egg-info/PKG-INFO +261 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme.egg-info/SOURCES.txt +86 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme.egg-info/dependency_links.txt +1 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme.egg-info/entry_points.txt +3 -0
- synth_shell_theme-1.3.9/src/synth_shell_theme.egg-info/top_level.txt +1 -0
- synth_shell_theme-1.3.9/tests/test_synth_shell_theme.py +1225 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Marcus Vinícius Soares
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: synth-shell-theme
|
|
3
|
+
Version: 1.3.9
|
|
4
|
+
Summary: Interactive 256-color Prompt Theme Picker (64 themes), Dual Powerline Separator Editor (48 presets + 60+ Nerd Font glyphs), Runtime Optimizer, and Live Web Studio for synth-shell.
|
|
5
|
+
Author: Marcus Vinícius Soares
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/mvsoares/synth-shell-theme
|
|
8
|
+
Project-URL: Repository, https://github.com/mvsoares/synth-shell-theme
|
|
9
|
+
Project-URL: Issues, https://github.com/mvsoares/synth-shell-theme/issues
|
|
10
|
+
Keywords: synth-shell,bash,prompt,powerline,terminal,theme,nerd-fonts,tui,256-color,customizer
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Environment :: Web Environment
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: System Administrators
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Operating System :: MacOS
|
|
19
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Topic :: System :: Shells
|
|
27
|
+
Classifier: Topic :: Terminals
|
|
28
|
+
Classifier: Topic :: Utilities
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# ✦ Synth-Shell Theme Studio (`synth-shell-theme`)
|
|
35
|
+
|
|
36
|
+
[](https://github.com/mvsoares/synth-shell-theme/actions/workflows/ci.yml)
|
|
37
|
+
[](https://pypi.org/project/synth-shell-theme/)
|
|
38
|
+
[](https://github.com/mvsoares/synth-shell-theme/releases)
|
|
39
|
+
[](https://www.python.org/)
|
|
40
|
+
[](https://github.com/mvsoares/synth-shell-theme)
|
|
41
|
+
[](https://github.com/mvsoares/synth-shell-theme/blob/main/LICENSE)
|
|
42
|
+
|
|
43
|
+
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](https://github.com/andresgongora/synth-shell).
|
|
44
|
+
|
|
45
|
+
Built with **100% Python `>= 3.10` standard library** — **zero external runtime dependencies**.
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/hero-prompt-showcase.png" alt="Synth-Shell Theme Studio — Curated 256-Color Prompt Palettes and Dual Powerline Separators" width="100%" />
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Features
|
|
54
|
+
|
|
55
|
+
- **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*.
|
|
56
|
+
- **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]`).
|
|
57
|
+
- **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**.
|
|
58
|
+
- **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.
|
|
59
|
+
- **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`).
|
|
60
|
+
- **Idempotent Runtime, Speed & Modern Terminal Patches (`synth-shell-theme init`)**:
|
|
61
|
+
1. **Zero-fork segment renderer (`zero_fork_render`)**: Eliminates ~15–25 subshell forks per `Enter` via pure-Bash color/format variable lookups.
|
|
62
|
+
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 `🚨`).
|
|
63
|
+
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.
|
|
64
|
+
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`.
|
|
65
|
+
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`).
|
|
66
|
+
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.
|
|
67
|
+
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.
|
|
68
|
+
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.
|
|
69
|
+
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`.
|
|
70
|
+
- **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`).
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Screenshots
|
|
75
|
+
|
|
76
|
+
### Interactive 2-Column Terminal Picker (`synth-shell-theme`)
|
|
77
|
+
|
|
78
|
+
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:
|
|
79
|
+
|
|
80
|
+
<p align="center">
|
|
81
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/tui-theme-picker.png" alt="Interactive 2-Column Terminal Theme Picker (synth-shell-theme)" width="100%" />
|
|
82
|
+
</p>
|
|
83
|
+
|
|
84
|
+
### Live Browser Web Studio (`synth-shell-theme web`)
|
|
85
|
+
|
|
86
|
+
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:
|
|
87
|
+
|
|
88
|
+
<p align="center">
|
|
89
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/web-studio-themes.png" alt="Synth-Shell Theme Web Studio — 64 Color Themes and Sticky Live Prompt Workbench" width="100%" />
|
|
90
|
+
</p>
|
|
91
|
+
|
|
92
|
+
<table>
|
|
93
|
+
<tr>
|
|
94
|
+
<td width="50%" align="center">
|
|
95
|
+
<strong>Dual Separators & 48 Curated Presets</strong><br /><br />
|
|
96
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/web-studio-separators.png" alt="Web Studio — Dual Powerline Separators Tab" width="100%" />
|
|
97
|
+
</td>
|
|
98
|
+
<td width="50%" align="center">
|
|
99
|
+
<strong>Segment Toggles, Runtime Optimizer & Backups</strong><br /><br />
|
|
100
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/web-studio-optimizer.png" alt="Web Studio — Layout, Segments and Runtime Optimizer Tab" width="100%" />
|
|
101
|
+
</td>
|
|
102
|
+
</tr>
|
|
103
|
+
</table>
|
|
104
|
+
|
|
105
|
+
### 60+ Nerd Font & Dual Separator Cheat-Sheet (`synth-shell-separator --palette`)
|
|
106
|
+
|
|
107
|
+
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):
|
|
108
|
+
|
|
109
|
+
<p align="center">
|
|
110
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/tui-separator-palette.png" alt="60+ Nerd Font Character Palette and Dual Separator Mix Examples" width="780" />
|
|
111
|
+
</p>
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Installation
|
|
116
|
+
|
|
117
|
+
### From PyPI (`pipx`, `uv`, or `pip`)
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Recommended: pipx
|
|
121
|
+
pipx install synth-shell-theme
|
|
122
|
+
|
|
123
|
+
# Or via uv (persistent tool install)
|
|
124
|
+
uv tool install synth-shell-theme
|
|
125
|
+
|
|
126
|
+
# Zero-install instant run with uvx
|
|
127
|
+
uvx synth-shell-theme
|
|
128
|
+
|
|
129
|
+
# Or via pip
|
|
130
|
+
pip install --user synth-shell-theme
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Local Clone / Editable Development Install
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
git clone https://github.com/mvsoares/synth-shell-theme.git
|
|
137
|
+
cd synth-shell-theme
|
|
138
|
+
pipx install -e . --force
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Both `synth-shell-theme` (primary CLI) and `synth-shell-separator` (dedicated separator editor) are installed onto your `PATH`.
|
|
142
|
+
|
|
143
|
+
### Initialize Runtime Enhancements
|
|
144
|
+
|
|
145
|
+
After installing `synth-shell` (or use `--install` to install upstream `synth-shell` automatically), apply the 4 runtime speed & compatibility patches once:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
synth-shell-theme init
|
|
149
|
+
# Or install upstream synth-shell + patch + apply Tokyo Night (#12):
|
|
150
|
+
synth-shell-theme init --install --apply tokyo-night
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Quick Start
|
|
156
|
+
|
|
157
|
+
### 1. Interactive Terminal Picker (TUI)
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
synth-shell-theme
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Keyboard shortcuts inside the TUI:
|
|
164
|
+
- `1`–`64` or theme name/slug — Apply theme immediately
|
|
165
|
+
- `n` / `p` / `g <page>` — Next, previous, or jump to page
|
|
166
|
+
- `/query` — Filter themes by name, slug, or badge (`c` to clear)
|
|
167
|
+
- `s` — Open the interactive **Dual Separator & 60+ Glyph Editor**
|
|
168
|
+
- `f` — Toggle **High-Contrast White Text** (`--force-white-text`)
|
|
169
|
+
- `k` — Toggle **Keep Current Input Color** (`--keep-input`)
|
|
170
|
+
- `w` — Launch the **Live Web Studio** in your browser
|
|
171
|
+
- `b` / `u` — Save a manual backup or undo/restore the latest backup
|
|
172
|
+
- `r` — Apply a random theme
|
|
173
|
+
|
|
174
|
+
### 2. Live Browser Web Studio
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
synth-shell-theme web
|
|
178
|
+
# Custom port or headless mode:
|
|
179
|
+
synth-shell-theme web --port 7778 --no-browser
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### 3. Direct CLI Commands
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# List all 64 themes with 256-color Host/PWD/Git swatches
|
|
186
|
+
synth-shell-theme --list
|
|
187
|
+
|
|
188
|
+
# Apply a theme by number, name, or slug
|
|
189
|
+
synth-shell-theme --apply 12
|
|
190
|
+
synth-shell-theme --apply catppuccin-mocha
|
|
191
|
+
synth-shell-theme --apply dracula-punch --force-white-text --keep-input
|
|
192
|
+
|
|
193
|
+
# Dual Powerline & Nerd Font separators
|
|
194
|
+
synth-shell-theme --dual round arrow # Rounded bubbles inside + classic triangle cap
|
|
195
|
+
synth-shell-theme --dual slant zap # Cyberpunk slant inside + lightning bolt at end
|
|
196
|
+
synth-shell-separator --palette # Print 60+ Nerd Font glyph cheat-sheet
|
|
197
|
+
synth-shell-separator # Launch dedicated interactive separator editor
|
|
198
|
+
|
|
199
|
+
# Prompt layout, truncation, prefix, text effect & telemetry segments
|
|
200
|
+
synth-shell-theme --format "HOST PWD GIT PYENV TF KUBE STATUS DURATION AWS" --two-line
|
|
201
|
+
synth-shell-theme --max-pwd 35 --max-git 22 --max-pyenv 18 --prefix auto --text-effect regular
|
|
202
|
+
|
|
203
|
+
# WSL2 / monorepo speed & ASCII-safe mode (SSH servers without Nerd Fonts)
|
|
204
|
+
synth-shell-theme --fast-git-wsl --git-timeout 400 --async-git
|
|
205
|
+
synth-shell-theme --ascii-safe
|
|
206
|
+
|
|
207
|
+
# Root prompt & synth-shell-greeter palette/monitor sync
|
|
208
|
+
synth-shell-theme --sync-root --sync-greeter --hide-swap
|
|
209
|
+
|
|
210
|
+
# Light / Dark toggle, live prompt benchmark & Bash tab-completion
|
|
211
|
+
synth-shell-theme --toggle-theme
|
|
212
|
+
synth-shell-theme bench --runs 20
|
|
213
|
+
eval "$(synth-shell-theme completion bash)"
|
|
214
|
+
|
|
215
|
+
# Right-aligned top bar (RPROMPT), OSC 133/7, Fish PWD, dynamic Git/SSH colors & notifications
|
|
216
|
+
synth-shell-theme --right-format "CLOCK BATTERY DURATION" --right-fill "─" --osc133 --osc7
|
|
217
|
+
synth-shell-theme --pwd-style fish --git-dynamic-color --ssh-host-color --notify-sec 30 --auto-theme
|
|
218
|
+
|
|
219
|
+
# Unified ecosystem sync (fzf + LS_COLORS + tmux + WezTerm), Starship export, SSH deploy & palette import
|
|
220
|
+
synth-shell-theme --sync-ecosystem
|
|
221
|
+
synth-shell-theme export-starship ~/.config/starship.toml
|
|
222
|
+
synth-shell-theme ssh-install user@my-server --ascii-safe
|
|
223
|
+
synth-shell-theme import-theme --pywal
|
|
224
|
+
synth-shell-theme import-theme ~/.config/ghostty/themes/tokyo-night
|
|
225
|
+
|
|
226
|
+
# Health check, auto-repair (`doctor --fix`), static GitHub Pages demo, backups & presets
|
|
227
|
+
synth-shell-theme doctor
|
|
228
|
+
synth-shell-theme doctor --fix
|
|
229
|
+
synth-shell-theme export-web docs/index.html
|
|
230
|
+
synth-shell-theme --restore
|
|
231
|
+
synth-shell-theme export my-prompt.json
|
|
232
|
+
synth-shell-theme import my-prompt.json
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Reload your active Bash session after applying changes:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
source ~/.config/synth-shell/synth-shell-prompt.sh
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## Environment Variables
|
|
244
|
+
|
|
245
|
+
| Variable | Description |
|
|
246
|
+
| :--- | :--- |
|
|
247
|
+
| `SYNTH_SHELL_CONFIG_DIR` | Override configuration directory (defaults to `~/.config/synth-shell`). |
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Development & Testing
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
python3 -m unittest discover -s tests -v
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## License
|
|
260
|
+
|
|
261
|
+
MIT License — see [LICENSE](https://github.com/mvsoares/synth-shell-theme/blob/main/LICENSE).
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# ✦ Synth-Shell Theme Studio (`synth-shell-theme`)
|
|
2
|
+
|
|
3
|
+
[](https://github.com/mvsoares/synth-shell-theme/actions/workflows/ci.yml)
|
|
4
|
+
[](https://pypi.org/project/synth-shell-theme/)
|
|
5
|
+
[](https://github.com/mvsoares/synth-shell-theme/releases)
|
|
6
|
+
[](https://www.python.org/)
|
|
7
|
+
[](https://github.com/mvsoares/synth-shell-theme)
|
|
8
|
+
[](https://github.com/mvsoares/synth-shell-theme/blob/main/LICENSE)
|
|
9
|
+
|
|
10
|
+
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](https://github.com/andresgongora/synth-shell).
|
|
11
|
+
|
|
12
|
+
Built with **100% Python `>= 3.10` standard library** — **zero external runtime dependencies**.
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/hero-prompt-showcase.png" alt="Synth-Shell Theme Studio — Curated 256-Color Prompt Palettes and Dual Powerline Separators" width="100%" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Features
|
|
21
|
+
|
|
22
|
+
- **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*.
|
|
23
|
+
- **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]`).
|
|
24
|
+
- **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**.
|
|
25
|
+
- **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.
|
|
26
|
+
- **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`).
|
|
27
|
+
- **Idempotent Runtime, Speed & Modern Terminal Patches (`synth-shell-theme init`)**:
|
|
28
|
+
1. **Zero-fork segment renderer (`zero_fork_render`)**: Eliminates ~15–25 subshell forks per `Enter` via pure-Bash color/format variable lookups.
|
|
29
|
+
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 `🚨`).
|
|
30
|
+
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.
|
|
31
|
+
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`.
|
|
32
|
+
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`).
|
|
33
|
+
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.
|
|
34
|
+
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.
|
|
35
|
+
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.
|
|
36
|
+
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`.
|
|
37
|
+
- **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`).
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Screenshots
|
|
42
|
+
|
|
43
|
+
### Interactive 2-Column Terminal Picker (`synth-shell-theme`)
|
|
44
|
+
|
|
45
|
+
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:
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/tui-theme-picker.png" alt="Interactive 2-Column Terminal Theme Picker (synth-shell-theme)" width="100%" />
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
### Live Browser Web Studio (`synth-shell-theme web`)
|
|
52
|
+
|
|
53
|
+
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:
|
|
54
|
+
|
|
55
|
+
<p align="center">
|
|
56
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/web-studio-themes.png" alt="Synth-Shell Theme Web Studio — 64 Color Themes and Sticky Live Prompt Workbench" width="100%" />
|
|
57
|
+
</p>
|
|
58
|
+
|
|
59
|
+
<table>
|
|
60
|
+
<tr>
|
|
61
|
+
<td width="50%" align="center">
|
|
62
|
+
<strong>Dual Separators & 48 Curated Presets</strong><br /><br />
|
|
63
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/web-studio-separators.png" alt="Web Studio — Dual Powerline Separators Tab" width="100%" />
|
|
64
|
+
</td>
|
|
65
|
+
<td width="50%" align="center">
|
|
66
|
+
<strong>Segment Toggles, Runtime Optimizer & Backups</strong><br /><br />
|
|
67
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/web-studio-optimizer.png" alt="Web Studio — Layout, Segments and Runtime Optimizer Tab" width="100%" />
|
|
68
|
+
</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</table>
|
|
71
|
+
|
|
72
|
+
### 60+ Nerd Font & Dual Separator Cheat-Sheet (`synth-shell-separator --palette`)
|
|
73
|
+
|
|
74
|
+
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):
|
|
75
|
+
|
|
76
|
+
<p align="center">
|
|
77
|
+
<img src="https://raw.githubusercontent.com/mvsoares/synth-shell-theme/main/docs/screenshots/tui-separator-palette.png" alt="60+ Nerd Font Character Palette and Dual Separator Mix Examples" width="780" />
|
|
78
|
+
</p>
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Installation
|
|
83
|
+
|
|
84
|
+
### From PyPI (`pipx`, `uv`, or `pip`)
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# Recommended: pipx
|
|
88
|
+
pipx install synth-shell-theme
|
|
89
|
+
|
|
90
|
+
# Or via uv (persistent tool install)
|
|
91
|
+
uv tool install synth-shell-theme
|
|
92
|
+
|
|
93
|
+
# Zero-install instant run with uvx
|
|
94
|
+
uvx synth-shell-theme
|
|
95
|
+
|
|
96
|
+
# Or via pip
|
|
97
|
+
pip install --user synth-shell-theme
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Local Clone / Editable Development Install
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
git clone https://github.com/mvsoares/synth-shell-theme.git
|
|
104
|
+
cd synth-shell-theme
|
|
105
|
+
pipx install -e . --force
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Both `synth-shell-theme` (primary CLI) and `synth-shell-separator` (dedicated separator editor) are installed onto your `PATH`.
|
|
109
|
+
|
|
110
|
+
### Initialize Runtime Enhancements
|
|
111
|
+
|
|
112
|
+
After installing `synth-shell` (or use `--install` to install upstream `synth-shell` automatically), apply the 4 runtime speed & compatibility patches once:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
synth-shell-theme init
|
|
116
|
+
# Or install upstream synth-shell + patch + apply Tokyo Night (#12):
|
|
117
|
+
synth-shell-theme init --install --apply tokyo-night
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Quick Start
|
|
123
|
+
|
|
124
|
+
### 1. Interactive Terminal Picker (TUI)
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
synth-shell-theme
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Keyboard shortcuts inside the TUI:
|
|
131
|
+
- `1`–`64` or theme name/slug — Apply theme immediately
|
|
132
|
+
- `n` / `p` / `g <page>` — Next, previous, or jump to page
|
|
133
|
+
- `/query` — Filter themes by name, slug, or badge (`c` to clear)
|
|
134
|
+
- `s` — Open the interactive **Dual Separator & 60+ Glyph Editor**
|
|
135
|
+
- `f` — Toggle **High-Contrast White Text** (`--force-white-text`)
|
|
136
|
+
- `k` — Toggle **Keep Current Input Color** (`--keep-input`)
|
|
137
|
+
- `w` — Launch the **Live Web Studio** in your browser
|
|
138
|
+
- `b` / `u` — Save a manual backup or undo/restore the latest backup
|
|
139
|
+
- `r` — Apply a random theme
|
|
140
|
+
|
|
141
|
+
### 2. Live Browser Web Studio
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
synth-shell-theme web
|
|
145
|
+
# Custom port or headless mode:
|
|
146
|
+
synth-shell-theme web --port 7778 --no-browser
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### 3. Direct CLI Commands
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
# List all 64 themes with 256-color Host/PWD/Git swatches
|
|
153
|
+
synth-shell-theme --list
|
|
154
|
+
|
|
155
|
+
# Apply a theme by number, name, or slug
|
|
156
|
+
synth-shell-theme --apply 12
|
|
157
|
+
synth-shell-theme --apply catppuccin-mocha
|
|
158
|
+
synth-shell-theme --apply dracula-punch --force-white-text --keep-input
|
|
159
|
+
|
|
160
|
+
# Dual Powerline & Nerd Font separators
|
|
161
|
+
synth-shell-theme --dual round arrow # Rounded bubbles inside + classic triangle cap
|
|
162
|
+
synth-shell-theme --dual slant zap # Cyberpunk slant inside + lightning bolt at end
|
|
163
|
+
synth-shell-separator --palette # Print 60+ Nerd Font glyph cheat-sheet
|
|
164
|
+
synth-shell-separator # Launch dedicated interactive separator editor
|
|
165
|
+
|
|
166
|
+
# Prompt layout, truncation, prefix, text effect & telemetry segments
|
|
167
|
+
synth-shell-theme --format "HOST PWD GIT PYENV TF KUBE STATUS DURATION AWS" --two-line
|
|
168
|
+
synth-shell-theme --max-pwd 35 --max-git 22 --max-pyenv 18 --prefix auto --text-effect regular
|
|
169
|
+
|
|
170
|
+
# WSL2 / monorepo speed & ASCII-safe mode (SSH servers without Nerd Fonts)
|
|
171
|
+
synth-shell-theme --fast-git-wsl --git-timeout 400 --async-git
|
|
172
|
+
synth-shell-theme --ascii-safe
|
|
173
|
+
|
|
174
|
+
# Root prompt & synth-shell-greeter palette/monitor sync
|
|
175
|
+
synth-shell-theme --sync-root --sync-greeter --hide-swap
|
|
176
|
+
|
|
177
|
+
# Light / Dark toggle, live prompt benchmark & Bash tab-completion
|
|
178
|
+
synth-shell-theme --toggle-theme
|
|
179
|
+
synth-shell-theme bench --runs 20
|
|
180
|
+
eval "$(synth-shell-theme completion bash)"
|
|
181
|
+
|
|
182
|
+
# Right-aligned top bar (RPROMPT), OSC 133/7, Fish PWD, dynamic Git/SSH colors & notifications
|
|
183
|
+
synth-shell-theme --right-format "CLOCK BATTERY DURATION" --right-fill "─" --osc133 --osc7
|
|
184
|
+
synth-shell-theme --pwd-style fish --git-dynamic-color --ssh-host-color --notify-sec 30 --auto-theme
|
|
185
|
+
|
|
186
|
+
# Unified ecosystem sync (fzf + LS_COLORS + tmux + WezTerm), Starship export, SSH deploy & palette import
|
|
187
|
+
synth-shell-theme --sync-ecosystem
|
|
188
|
+
synth-shell-theme export-starship ~/.config/starship.toml
|
|
189
|
+
synth-shell-theme ssh-install user@my-server --ascii-safe
|
|
190
|
+
synth-shell-theme import-theme --pywal
|
|
191
|
+
synth-shell-theme import-theme ~/.config/ghostty/themes/tokyo-night
|
|
192
|
+
|
|
193
|
+
# Health check, auto-repair (`doctor --fix`), static GitHub Pages demo, backups & presets
|
|
194
|
+
synth-shell-theme doctor
|
|
195
|
+
synth-shell-theme doctor --fix
|
|
196
|
+
synth-shell-theme export-web docs/index.html
|
|
197
|
+
synth-shell-theme --restore
|
|
198
|
+
synth-shell-theme export my-prompt.json
|
|
199
|
+
synth-shell-theme import my-prompt.json
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
Reload your active Bash session after applying changes:
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
source ~/.config/synth-shell/synth-shell-prompt.sh
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Environment Variables
|
|
211
|
+
|
|
212
|
+
| Variable | Description |
|
|
213
|
+
| :--- | :--- |
|
|
214
|
+
| `SYNTH_SHELL_CONFIG_DIR` | Override configuration directory (defaults to `~/.config/synth-shell`). |
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Development & Testing
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
python3 -m unittest discover -s tests -v
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## License
|
|
227
|
+
|
|
228
|
+
MIT License — see [LICENSE](https://github.com/mvsoares/synth-shell-theme/blob/main/LICENSE).
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "synth-shell-theme"
|
|
7
|
+
version = "1.3.9"
|
|
8
|
+
description = "Interactive 256-color Prompt Theme Picker (64 themes), Dual Powerline Separator Editor (48 presets + 60+ Nerd Font glyphs), Runtime Optimizer, and Live Web Studio for synth-shell."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Marcus Vinícius Soares" },
|
|
15
|
+
]
|
|
16
|
+
keywords = [
|
|
17
|
+
"synth-shell",
|
|
18
|
+
"bash",
|
|
19
|
+
"prompt",
|
|
20
|
+
"powerline",
|
|
21
|
+
"terminal",
|
|
22
|
+
"theme",
|
|
23
|
+
"nerd-fonts",
|
|
24
|
+
"tui",
|
|
25
|
+
"256-color",
|
|
26
|
+
"customizer",
|
|
27
|
+
]
|
|
28
|
+
classifiers = [
|
|
29
|
+
"Development Status :: 5 - Production/Stable",
|
|
30
|
+
"Environment :: Console",
|
|
31
|
+
"Environment :: Web Environment",
|
|
32
|
+
"Intended Audience :: Developers",
|
|
33
|
+
"Intended Audience :: System Administrators",
|
|
34
|
+
"Operating System :: OS Independent",
|
|
35
|
+
"Operating System :: POSIX :: Linux",
|
|
36
|
+
"Operating System :: MacOS",
|
|
37
|
+
"Operating System :: Microsoft :: Windows",
|
|
38
|
+
"Programming Language :: Python :: 3",
|
|
39
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
40
|
+
"Programming Language :: Python :: 3.10",
|
|
41
|
+
"Programming Language :: Python :: 3.11",
|
|
42
|
+
"Programming Language :: Python :: 3.12",
|
|
43
|
+
"Programming Language :: Python :: 3.13",
|
|
44
|
+
"Topic :: System :: Shells",
|
|
45
|
+
"Topic :: Terminals",
|
|
46
|
+
"Topic :: Utilities",
|
|
47
|
+
]
|
|
48
|
+
dependencies = []
|
|
49
|
+
|
|
50
|
+
[project.urls]
|
|
51
|
+
Homepage = "https://github.com/mvsoares/synth-shell-theme"
|
|
52
|
+
Repository = "https://github.com/mvsoares/synth-shell-theme"
|
|
53
|
+
Issues = "https://github.com/mvsoares/synth-shell-theme/issues"
|
|
54
|
+
|
|
55
|
+
[project.scripts]
|
|
56
|
+
synth-shell-theme = "synth_shell_theme.cli:main"
|
|
57
|
+
synth-shell-separator = "synth_shell_theme.cli:main_separator"
|
|
58
|
+
|
|
59
|
+
[tool.setuptools]
|
|
60
|
+
package-dir = {"" = "src"}
|
|
61
|
+
include-package-data = true
|
|
62
|
+
|
|
63
|
+
[tool.setuptools.packages.find]
|
|
64
|
+
where = ["src"]
|
|
65
|
+
|
|
66
|
+
[tool.setuptools.package-data]
|
|
67
|
+
synth_shell_theme = ["themes/*.conf", "assets/*.html"]
|