mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-19 02:02:32 +01:00
Fixes #13366 - Tab completion after 'git' triggers bin/test execution Fixes #13310 - Duplicate completion candidates The 'l:|=* r:|=*' matcher pattern in completion.zsh was causing: 1. Unintended script execution during tab completion 2. Duplicate completion candidates 3. Overly permissive matching This pattern allowed left-side anchor matching which could cause zsh to execute scripts like bin/test when searching for completions. Removed 'l:|=* r:|=*' from all three configuration branches while preserving essential functionality: - Case-insensitive matching: m:{[:lower:][:upper:]}={[:upper:][:lower:]} - Right-side fuzzy matching: r:|=* - Hyphen-insensitive matching: m:{[:lower:][:upper:]-_}={[:upper:][:lower:]_-} Testing shows that completion continues to work correctly without the security and performance issues. |
||
|---|---|---|
| .. | ||
| tests | ||
| async_prompt.zsh | ||
| bzr.zsh | ||
| cli.zsh | ||
| clipboard.zsh | ||
| compfix.zsh | ||
| completion.zsh | ||
| correction.zsh | ||
| diagnostics.zsh | ||
| directories.zsh | ||
| functions.zsh | ||
| git.zsh | ||
| grep.zsh | ||
| history.zsh | ||
| key-bindings.zsh | ||
| misc.zsh | ||
| nvm.zsh | ||
| prompt_info_functions.zsh | ||
| spectrum.zsh | ||
| termsupport.zsh | ||
| theme-and-appearance.zsh | ||
| vcs_info.zsh | ||