* Better placement of Fossil prompt info
Instead of blindly tacking `$fossil_prompt_info` onto the end of the
prompt string and making assumptions about whether `$PROMPT` or
`$RPROMPT` are in use here, assume the user is using a theme that puts
`$git_prompt_info` in there somewhere and inject our info immediately
afterward. The theme creator decided that's a good place for Git prompt
info, so that's a good place for Fossil prompt info, too.
This also replaces some calls out to `grep` with internal Zsh string
manipulation for less overhead.
* fix(fossil): fall back to RPROMPT when the theme has no git_prompt_info
Keeps today's behaviour for themes without git_prompt_info, and re-checks on
each prompt in case the theme rebuilds its prompt.
---------
Co-authored-by: Robby Russell <robby@planetargon.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
BREAKING CHANGE: the fossil plugin now ships a prompt function that
removes spacing between segments. Spaces can always be added by
changing the setting variables. Check out the README for details.
* Reduced unnecessary space in Fossil plugin prompt
The prior version was way too opinionated, adding space between each element of the prompt string, unlike common Git prompt strings. If the user wants more space, they can override our public variables to suit. The inverse argument doesn't hold: it's easy to add space to existing variables, but not as easy to remove it after the fact.
As part of this, changed the branch name from red to blue (matching the preceding part of the prompt) so the red "X" added to indicate a dirty branch doesn't get lost in the branch name.
* fix(fossil): keep the branch name red
* Document fossil prompt settings
---------
Co-authored-by: Robby Russell <robby@planetargon.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Marc Cornellà <marc@mcornella.com>
Generate completions from the installed terraform-docs CLI in the background and preserve a valid cache when generation fails or returns no output.
Fixes#12138
AI-assisted with OpenAI Codex.
Move invoke, istioctl, kn, kompose, kops, oc, operator-sdk, please and
svcat off sourcing `<($cmd completion ...)` on every startup. The
completion script is now cached under $ZSH_CACHE_DIR/completions and
regenerated in the background, following the pattern used by the helm
plugin.
Writes go through a temp file (prefixed with a dot to keep it out of
$fpath) that is moved into place atomically with `zf_mv`, so a
half-written file is never sourced.
* perf(aws): read profiles from config files before falling back to the CLI
`aws configure list-profiles` takes ~0.5s to start, and `asp`/`acp` tab
completion runs it every time. Read ~/.aws/config and ~/.aws/credentials
directly instead, and only call the CLI if neither file is readable.
* perf(aws): read the profile region from the config file in asp
`asp` ran `aws configure get region` on every switch, which takes ~0.5s,
and the saved-state restore ran it in every new shell. Read the region
from ~/.aws/config directly, and only call the CLI when the profile has
no region there.
- eval `zsh-patina activate` when installed, else print install URL
- ZSH_PATINA_BINARY overrides the binary path, eg: ~/.cargo/bin
- skip with a warning when zsh-syntax-highlighting is enabled
- modeled on the zoxide plugin