mirror of
https://github.com/zdharma-continuum/zinit-annex-patch-dl.git
synced 2026-09-10 07:26:19 -04:00
Rename the handler from :za-* to →za-* to allow using on Windows
This commit is contained in:
parent
4987e47e70
commit
b1fae25c20
|
|
@ -4,18 +4,18 @@
|
|||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
||||
0="${${(M)0:#/*}:-$PWD/$0}"
|
||||
|
||||
autoload -Uz :za-patch-dl-handler
|
||||
autoload -Uz →za-patch-dl-handler
|
||||
|
||||
# An empty stub to fill the help handler fields
|
||||
:za-patch-dl-help-null-handler() { :; }
|
||||
→za-patch-dl-help-null-handler() { :; }
|
||||
|
||||
# Register !atclone hook
|
||||
@zinit-register-annex "z-a-patch-dl" hook:\!atclone \
|
||||
:za-patch-dl-handler \
|
||||
:za-patch-dl-help-null-handler \
|
||||
→za-patch-dl-handler \
|
||||
→za-patch-dl-help-null-handler \
|
||||
"dl''|patch''" # register a new ice-mod: test''
|
||||
|
||||
# Register !atpull hook
|
||||
@zinit-register-annex "z-a-patch-dl" hook:\!atpull \
|
||||
:za-patch-dl-handler \
|
||||
:za-patch-dl-help-null-handler
|
||||
→za-patch-dl-handler \
|
||||
→za-patch-dl-help-null-handler
|
||||
|
|
|
|||
Loading…
Reference in a new issue