mirror of
https://github.com/zdharma-continuum/zinit-annex-submods.git
synced 2024-11-21 12:08:00 +01:00
756843d867
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
30 lines
832 B
Bash
30 lines
832 B
Bash
#!/usr/bin/env zsh
|
|
#
|
|
# Copyright (c) 2016-2021 Sebastian Gniazdowski and contributors
|
|
# Copyright (c) 2021-2022 zdharma-continuum and contributors
|
|
#
|
|
|
|
# Standarized $0 handling, see:
|
|
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html#zero-handling
|
|
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
|
0="${${(M)0:#/*}:-$PWD/$0}"
|
|
|
|
za-null-handler() { :; }
|
|
|
|
autoload -Uz \
|
|
za-submods-atclone-handler \
|
|
za-submods-atpull-handler \
|
|
za-submods-help-handler
|
|
|
|
@zinit-register-annex "zinit-annex-submods" \
|
|
hook:atclone-30 \
|
|
za-submods-atclone-handler \
|
|
za-submods-help-handler \
|
|
"submods''"
|
|
|
|
@zinit-register-annex "zinit-annex-submods" \
|
|
hook:%atpull-30 \
|
|
za-submods-atpull-handler \
|
|
za-null-handler
|
|
|
|
# vim: set expandtab filetype=zsh shiftwidth=4 softtabstop=4 tabstop=4:
|