1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-configs.git synced 2024-11-21 12:18:01 +01:00
zinit-configs/zinit-configs.plugin.zsh
Vladislav Doster b639f37d12 maint: update plugin
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-04 22:31:20 -05:00

23 lines
576 B
Bash

#!/usr/bin/env zsh
# -*- mode: sh; sh-indentation: 2; sh-basic-offset: 2; -*-
# Copyright (c) 2020 Sebastian Gniazdowski
# License MIT
# Get $0 according to the Zsh Plugin Standard:
# 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}"
CURRENT_DIR=${0:a:h}
zinit-configs-cmd() {
"${CURRENT_DIR}"/run.sh
}
# The subcommand `scope'.
@zinit-register-annex "zinit-configs" \
subcommand:configs \
zinit-configs-cmd
# vim:ft=zsh:tw=80:sw=2:sts=2:noet