mirror of
https://github.com/zdharma-continuum/zinit-annex-patch-dl.git
synced 2026-09-10 07:26:19 -04:00
28 lines
797 B
Bash
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:
|