fix(gitfast): update alias config regexp to '^alias\.'

I have a custom alias-helper.* section in my config, and the old regexp
captured them too.

[1] 303ffaa3d4/.gitconfig (L9-37)
This commit is contained in:
Frederick Zhang 2025-07-29 14:39:31 +10:00
commit 1d9fae02de
No known key found for this signature in database
GPG key ID: 980A192C361BE1AE

View file

@ -173,7 +173,7 @@ __git_zsh_cmd_common ()
__git_zsh_cmd_alias () __git_zsh_cmd_alias ()
{ {
local -a list local -a list
list=(${${(0)"$(git config -z --get-regexp '^alias\.*')"}#alias.}) list=(${${(0)"$(git config -z --get-regexp '^alias\.')"}#alias.})
list=(${(f)"$(printf "%s:alias for '%s'\n" ${(f@)list})"}) list=(${(f)"$(printf "%s:alias for '%s'\n" ${(f@)list})"})
_describe -t alias-commands 'aliases' list && _ret=0 _describe -t alias-commands 'aliases' list && _ret=0
} }