Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Proof of concept mainstream plugin manager
- X-seq: zsh-workers 37739
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Proof of concept mainstream plugin manager
- Date: Sat, 23 Jan 2016 16:54:12 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=t1GAjIi10xPXt0CHr7uf2MpiyswHkdo/mz9cFrZrEfY=; b=ZGrg4zywK/dAxNax4N2UcfLwHop1PgZEkzuGVdjyNZFLsQAqMYDcWj8nXBOtqzgXSU tSwv4pUPpYEOSgOW0hCV9KtNQCU1Q3hJNnQLbhmVWH6VvCfwTv4u/tfiosQfDlk9XVtr mT7tdVltBQ/G1J5qyA3CCeWt27YxPAD6icw5EcZ9dPkC6j4m3euTdSo+DbMbAuLbrLuB eepHaE+rrO1EOMwADzQlMIvZg6cnKm8VhTsfSMsN5/NyavIbZcb0QCiDlfcQ2LVtMV3N nu/Widfz9h3MRmeBSMKC2DZ/t2SkuW52U9kvYShgJk7ihJ970CkSigPuRcUGyJfrCFkp Sdtw==
- In-reply-to: <CAKc7PVCywh3fVsvFOUP3Bi27-8o1w30_E73rs8c+Zd4sOqtT8w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVByfo51GcVkb_kYgO2D3cWYrcq-p4v8gmyfsaeWU=2new@mail.gmail.com> <160122173705.ZM11491@torch.brasslantern.com> <CAKc7PVCywh3fVsvFOUP3Bi27-8o1w30_E73rs8c+Zd4sOqtT8w@mail.gmail.com>
On 23 January 2016 at 10:03, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> Discouraging, but quite expected. Doing autoload -X is expected to
> generate some edge-cases on Zsh usage. If I could test say 30 plugins
> from the awesome-zsh-plugins list, and confirm they're all working,
> that would be an enabler for autoload -X, otherwise the project's
> sense is doubtful.
Tried without eval:
for i in "$@"; do
$i() {
local_FPATH
builtin autoload -X
}
local replace_str="local
FPATH='$ZPLUGIN_HOME/plugins/${ZPLUGIN_CURRENT_USER}--${ZPLUGIN_CURRENT_PLUGIN}'"
functions[$i]="${functions[$i]/local_FPATH/$replace_str}"
done
https://github.com/psprint/zplugin/commit/8bcb689b5c808b7136f0385c9506fbaa3ef83f46
But the traps are still broken. That's a puzzle, as autoload does the
same thing – constructs function with autoload -X in its body...
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author