Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Update __git_extract_aliases config regexp to '^alias\.'
- X-seq: zsh-workers 53825
- From: Frederick Zhang <frederick888@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: Frederick Zhang <frederick888@xxxxxxxxxxxx>
- Subject: [PATCH] Update __git_extract_aliases config regexp to '^alias\.'
- Date: Wed, 30 Jul 2025 23:13:49 +1000
- Archived-at: <https://zsh.org/workers/53825>
- List-id: <zsh-workers.zsh.org>
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