Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Update __git_extract_aliases config regexp to '^alias\.'



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

[1] https://git.tsundere.moe/Frederick888/frederick-settings/-/blob/303ffaa3d465640031dbd06a81d77975f749d955/.gitconfig#L9-37
---
 Completion/Unix/Command/_git | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 7c7b0d7..c31ca0d 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -6560,9 +6560,9 @@ __git_aliases () {
 
 (( $+functions[__git_extract_aliases] )) ||
 __git_extract_aliases () {
   local -a tmp
-  tmp=(${${(0)"$(_call_program aliases "git config -z --get-regexp '^alias.'")"}#alias.})
+  tmp=(${${(0)"$(_call_program aliases "git config -z --get-regexp '^alias\.'")"}#alias.})
   if (( ${#tmp} > 0 )); then
       aliases=(${^tmp/$'\n'/:alias for \'}\')
   else
       aliases=()
-- 
2.50.1





Messages sorted by: Reverse Date, Date, Thread, Author