1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-annex-patch-dl.git synced 2025-01-30 17:08:23 +01:00
zinit-annex-patch-dl/z-a-patch-dl.plugin.zsh
vladislav doster 7386010554
fix: consistent logging format (#14)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-28 17:17:54 -05:00

28 lines
709 B
Bash

#!/usr/bin/env zsh
#
# 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-handler
# An empty stub to fill the help handler fields
za-patch-dl-help-null-handler() { :; }
# Register !atclone hook
@zinit-register-annex "zinit-annex-patch-dl" \
hook:\!atclone-20 \
za-patch-dl-handler \
za-patch-dl-help-null-handler \
"dl''|patch''"
# Register !atpull hook
@zinit-register-annex "zinit-annex-patch-dl" \
hook:atpull-20 \
za-patch-dl-handler \
za-patch-dl-help-null-handler
# vim:ft=zsh:sw=2:sts=2:et