mirror of
https://github.com/zdharma-continuum/zinit-annex-meta-plugins.git
synced 2026-09-10 07:16:29 -04:00
Remove non-ascii chars from filenames (#4)
This commit is contained in:
parent
55d9f46955
commit
db112b274a
|
|
@ -16,25 +16,25 @@ Zinit_Annex_Meta_Plugins[0]="$0" Zinit_Annex_Meta_Plugins[repo-dir]="${0:h}"
|
|||
typeset -gA Plugins
|
||||
Plugins[META_PLUGINS_DIR]="${0:h}"
|
||||
|
||||
autoload -Uz ∧za-meta-plugins-before-load-handler \
|
||||
∧za-meta-plugins-default-ice-cmd-help-handler \
|
||||
∧za-meta-plugins-default-ice-cmd
|
||||
autoload -Uz za-meta-plugins-before-load-handler \
|
||||
za-meta-plugins-default-ice-cmd-help-handler \
|
||||
za-meta-plugins-default-ice-cmd
|
||||
|
||||
# An empty stub to fill the help handler fields
|
||||
∧za-meta-plugins-help-null-handler() { :; }
|
||||
za-meta-plugins-help-null-handler() { :; }
|
||||
|
||||
# The unscoping-support hook.
|
||||
@zinit-register-annex "zinit-annex-meta-plugins" \
|
||||
hook:before-load-4 \
|
||||
∧za-meta-plugins-before-load-handler \
|
||||
∧za-meta-plugins-help-null-handler \
|
||||
za-meta-plugins-before-load-handler \
|
||||
za-meta-plugins-help-null-handler \
|
||||
"skip''" # Add a new ice
|
||||
|
||||
# The subcommand `meta'.
|
||||
@zinit-register-annex "zinit-annex-meta-plugins" \
|
||||
subcommand:default-ice \
|
||||
∧za-meta-plugins-default-ice-cmd \
|
||||
∧za-meta-plugins-default-ice-cmd-help-handler
|
||||
za-meta-plugins-default-ice-cmd \
|
||||
za-meta-plugins-default-ice-cmd-help-handler
|
||||
|
||||
# The map in which the definitions of the meta-plugins are being stored.
|
||||
typeset -gA Zinit_Annex_Meta_Plugins_Map
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# Copyright (c) 2020 Sebastian Gniazdowski
|
||||
|
||||
∧za-meta-plugins-before-load-handler() {
|
||||
za-meta-plugins-before-load-handler() {
|
||||
|
||||
# Set the base and typically useful options.
|
||||
builtin emulate -LR zsh
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
# Copyright (c) 2020 Sebastian Gniazdowski
|
||||
# License: MIT
|
||||
|
||||
∧za-meta-plugins-default-ice-cmd() {
|
||||
za-meta-plugins-default-ice-cmd() {
|
||||
# Set the base and typically useful options.
|
||||
builtin emulate -LR zsh
|
||||
builtin setopt extendedglob warncreateglobal typesetsilent noshortloops rcquotes
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
# --help/-h
|
||||
if (( ${#help} )) {
|
||||
∧za-meta-plugins-default-ice-cmd-help-handler
|
||||
za-meta-plugins-default-ice-cmd-help-handler
|
||||
return retval
|
||||
}
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# -*- mode: sh; sh-indentation: 4; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||
# Copyright (c) 2020 Sebastian Gniazdowski
|
||||
|
||||
∧za-meta-plugins-default-ice-cmd-help-handler() {
|
||||
za-meta-plugins-default-ice-cmd-help-handler() {
|
||||
+zinit-message "—— {pre}default-ice {meta}--help{data}/{meta}-h" \
|
||||
"{rst}{nl}{nl}" \
|
||||
\
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# -*- mode: sh; sh-indentation: 4; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||
# Copyright (c) 2020 Sebastian Gniazdowski
|
||||
|
||||
∧za-meta-plugins-meta-cmd-help-handler() {
|
||||
za-meta-plugins-meta-cmd-help-handler() {
|
||||
+zinit-message "—— {pre}meta {meta}--help{data}/{meta}-h" \
|
||||
"{rst}{nl}{nl}" \
|
||||
\
|
||||
Loading…
Reference in a new issue