Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Proof of concept mainstream plugin manager



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



Messages sorted by: Reverse Date, Date, Thread, Author