# Starship "Capsule" prompt + Rosé Pine dark theme Two-line prompt, Rosé Pine **base dark** (`#191724` — not Moon, not Dawn), nerd-font glyphs only (no emoji). Config: `~/.config/starship.toml`. Loaded by `~/.dotfiles/config/theme.zsh`. Call this card with **`cheat prompt`**. ## Reading it ``` ╭─ ☧ daemon1@AT4 󰉋 ~/proj main !3 ⇡2 ╾╴󰌠 3.12 73% 󰥔 08:30 ╰─▰▰▰▶❯ ``` - **☧** — the rotating Chi-Rho / Orthodox glyph on an *iris* cap. Rotates per launch (`animations.zsh` picks it and exports `$CROSS_GLYPH`). - **daemon1@AT4** — identity on an *overlay* pill: user in rose, host in foam. - **󰉋 path** — *gold* capsule = current dir (icons substitute for Documents/ Downloads/Projects…). - ** branch + status** — *love* capsule: `!`modified `+`staged `?`untracked `⇡`ahead `⇣`behind `✗`deleted. - **╾╴ lang/tool** — thin rail: python/node/rust/go/docker/k8s/aws version, shown only when relevant to the folder. - **right side** — battery (colour by level) + clock on a *rose* capsule. - **▰▰▰▶❯** — prompt character; the whole run turns warm after a failed command. ## The palette (`[palettes.rose_pine]` in starship.toml) | name | hex | use | |------|-----|-----| | bone | `#e0def4` | text — primary text | | foam | `#9ccfd8` | readable teal — **ink** on dark | | mint | `#31748f` | pine — **chip fill only**, never ink | | amber | `#f6c177` | gold — directory capsule | | coral | `#ebbcba` | rose — right-side capsule | | red | `#eb6f92` | love — git / errors | | pink | `#c4a7e7` | iris — Chi-Rho cap | | dim | `#908caa` | subtle — separators | | mute | `#6e6a86` | muted — deepest legible grey | | over | `#26233a` | overlay — identity pill fill | | void | `#191724` | base — text-on-capsule (ink) | | wine | `#7d2a3f` | dark love — alert ink on a *light* chip | This same palette drives `fzf`, `eza` (`theme.yml`), `rg`, `bat`, `btop`, tmux and the finders — one coherent look. Reuse these hexes when theming a new tool. ## The contrast law (read this before you recolour anything) Every filled chip must clear **4.5:1**. Ink follows the fill: - light fill (`amber` / `coral` / `pink` / `bone`) → **`fg:void`** - dark fill (`mint` / `over` / `red`) → **`fg:bone`** (`red` also takes `void`) **Never use `mint` as a foreground on the base background.** Pine is 3.3:1 on `#191724`. It works in Dawn because there it is dark ink on a cream page; when this theme was ported to dark, pine came along as a foreground and quietly took the frame, the `❯`, the git `⇡`, eza's directory colour and every `code` span in the cheat cards down with it. Dark mode's readable teal is **foam** (10.3:1). The same port left `fg:bone` sitting on `bg:amber` (**1.24:1**) and on `bg:coral` (**1.27:1**) — the directory path and the clock were rendering as near-invisible light-on-light. Both now take `fg:void`. ## Transient prompt After you accept a command, its prompt **collapses to a slim foam `❯`** so scrollback stays clean; the live prompt keeps the full frame. - starship has **no native** zsh transient — this is a small `line-finish` ZLE hook in `theme.zsh` (stacks safely with atuin / syntax-highlighting). - Turn it off: `export STARSHIP_TRANSIENT=0` then open a new shell. - The old `enable_transience` call (a fish/p10k function) never did anything. ## Editing the prompt ```sh starship config # open starship.toml in $EDITOR starship explain # explain what each rendered module is + timing starship timings # find slow modules starship module rust # preview a single module ``` - Toggle a module: add `[]` then `disabled = true`. - Reorder: edit the `format = """…"""` block (top of the file). - Revert to the pre-dark version: `cp ~/.config/starship.toml.pre-dark ~/.config/starship.toml`. ## Notes - `STARSHIP_CONFIG` is unset → default `~/.config/starship.toml`. - The active-pentest-target banner above the prompt is a separate `precmd` hook in `theme.zsh` (reads `~/.pentest/.active`) — not part of starship.toml. `cheat prompt` = this card · `cheat splash` = the startup animation · `palette` = fzf command menu.