fix(completion): balance paren and escape $PATH in snippet --command spec

This commit is contained in:
Tom Hale 2026-09-09 13:07:46 +07:00
parent 1eae28dfb5
commit 537d364f53

2
_zinit
View file

@ -282,7 +282,7 @@ _zinit_self_update(){
# FUNCTION: _zinit_snippet [[[
_zinit_snippet(){
_arguments -A \
'(-c --command)'{-c,--command}'[Load the snippet as a command (i.e., make executable and apend to $PATH])' \
'(-c --command)'{-c,--command}'[Load the snippet as a command (i.e., make executable and apend to \$PATH)]' \
'(-f --force)'{-f,--force}'[Force new download of the snippet file]' \
'(-h --help)'{-h,--help}'[Show this help message]'
_arguments - snippet '*::snippet:__zinit_installed_snippets' && ret=0