diff --git a/libary.md b/libary.md index 301d4ca..be723f4 100644 --- a/libary.md +++ b/libary.md @@ -2,6 +2,28 @@ This file lists every prompt theme, color codes, design intent, and configuration options. +## Git Capsule (optional, all themes) + +What it is: a compact git status block shown on line 2 when you're inside a git repo. +It uses `__git_ps1` when available, with a safe fallback to `git rev-parse` for the branch. + +States + emojis: +- Clean repo: โœจ +- Dirty working tree: ๐Ÿ”จ +- Staged changes: ๐Ÿ“Œ +- Untracked files: ๐Ÿงท +- Stashed changes: ๐Ÿ“ฆ + +How it works: +- The capsule only renders when a repo is detected (no extra noise outside git). +- If `__git_ps1` is available, it reads git state flags and maps them to emojis. +- If not, it falls back to the current branch/short SHA (still useful, but fewer states). + +Best practices: +- Keep the capsule on during active work; it surfaces risk at a glance. +- If you want faster prompts in very large repos, leave untracked detection off. +- Use the Git theme for a minimal, work-safe look with the capsule always enabled. + ## Seasonal (Aurora, Standard Pack) Design intent: calm, readable, long-session comfort with a subtle five-step gradient