zdharma-continuum.zinit-ann.../z-a-patch-dl.plugin.zsh
Vladislav Doster abb4597998 refactor: rename funcs
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-20 12:24:23 -06:00

28 lines
797 B
Bash

# In accordance with the Zsh Plugin Standard
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
autoload -Uz \
:za-patch-dl::help-handler \
:za-patch-dl::file-handler
# An empty stub to fill the help handler fields
:za-patch-dl::help-handler() { :; }
# Register !atclone hook
@zinit-register-annex "zinit-annex-patch-dl" \
hook:\!atclone-20 \
:za-patch-dl::file-handler \
:za-patch-dl::help-handler \
"dl''|patch''" # register a new ice-mod: test''
# Register !atpull hook
@zinit-register-annex "zinit-annex-patch-dl" \
hook:\!atpull-20 \
:za-patch-dl::file-handler \
:za-patch-dl::help-handler
# vim: set expandtab filetype=zsh shiftwidth=2 softtabstop=2 tabstop=2: