Subject: Re: Proof of concept mainstream plugin manager
From: Sebastian Gniazdowski <[email-masked]>
To: Bart Schaefer <[email-masked]>
Cc: Zsh hackers list <[email-masked]>
Date: Sat, 23 Jan 2016 17:26:14 +0100
List-Id: Zsh Workers List <zsh-workers.zsh.org>

One final trick:

    for i in "$@"; do
        fpath+=$ZPLUGIN_HOME/plugins/${ZPLUGIN_CURRENT_USER}--${ZPLUGIN_CURRENT_PLUGIN}
        autoload "$i"
*        functions[$i]=$functions[$i]
    done

Without the * line traps work fine, with it – a deferred invocation of
Ctrl-C in wild-carded case occurs. Seems like autoload -X doesn't like
to be put into function's body in any other way than via autoload.

Best regards,
Sebastian Gniazdowski