From 1d9fae02dee684b01e66fd0e8e2fc269b7a98a6c Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Tue, 29 Jul 2025 14:39:31 +1000 Subject: [PATCH] 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] https://git.tsundere.moe/Frederick888/frederick-settings/-/blob/303ffaa3d465640031dbd06a81d77975f749d955/.gitconfig#L9-37 --- plugins/gitfast/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gitfast/_git b/plugins/gitfast/_git index 1283c713e..ec409b1ac 100644 --- a/plugins/gitfast/_git +++ b/plugins/gitfast/_git @@ -173,7 +173,7 @@ __git_zsh_cmd_common () __git_zsh_cmd_alias () { 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})"}) _describe -t alias-commands 'aliases' list && _ret=0 }