From fbdd3b36b6ed8f4f0e443384644c8bbea5992539 Mon Sep 17 00:00:00 2001 From: vapniks Date: Sat, 18 Apr 2026 22:59:48 +0100 Subject: [PATCH] Update zsh-completions-howto.org Fix explanation of _regex_arguments example --- zsh-completions-howto.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-completions-howto.org b/zsh-completions-howto.org index 094e29b..b60b39f 100644 --- a/zsh-completions-howto.org +++ b/zsh-completions-howto.org @@ -296,7 +296,7 @@ _regex_arguments _cmd /$'[^\0]##\0'/ \( /$'word1(a|b|c)\0'/ ':word:first word:(w _cmd "$@" #+END_SRC in this case the first word can be word1 or word11 followed by an a, b or c, and if the first word contains 11 then a second -word is allowed which can be word2 followed by and a, b, or c, or a filename. +word is allowed which can be word2 or word22 followed by and a, b, or c. If this sounds too complicated a much simpler alternative is to use the _regex_words function for creating specifications for _regex_arguments.