Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Truncate $functions
- X-seq: zsh-users 21297
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Truncate $functions
- Date: Mon, 15 Feb 2016 20:51:53 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=ssAIsJj1N+xA2KVIY+5220pv/c4X5/8dJo3Zokab6fc=; b=JJH658b8f8bTOIrnqZZBkR8UiS6jTWwScu4szEh+9LM4NlAlErzksrNlzAucUOb6s1 JFWD/LoJRPyAcUX6vXuQJRHqK9OQRB2qzxKHnPaz8bFmiGGv8mGGqwiFbV5TbfVzxvR5 ODicsaOe/3tHdAGgmCczAEFpRqOdyPjMmNcc9f+CiAKvL9NLm/+8rztzETzINcQovdVF YnC4bFPSbUAt/SoCCm3d8/Nq/deb9OFL8meovj8In9lZvHcT+JhMJKuMN1GHQRGC84/g VbRDq16+2w0ZfHQxmP+62IRwUcOTRFmKxpR7fBIwdSsXrxzHNaaiqwh6CrLae+yb+5Ab Vp5g==
- In-reply-to: <CAKc7PVAF9zYtWeyZJccet=-_Dbae3=WtkG-wLxjjX2Btt_VGdg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBFD0h6ovynoTCkBmR3Z+cfQv_bs2-AOfc_4sfDAwP7ow@mail.gmail.com> <160215091116.ZM27442@torch.brasslantern.com> <CAKc7PVAF9zYtWeyZJccet=-_Dbae3=WtkG-wLxjjX2Btt_VGdg@mail.gmail.com>
On Feb 15, 8:31pm, Sebastian Gniazdowski wrote:
}
} Thank you, this works really well.
As an additional note -- functions that look like
sample () {
# undefined
builtin autoload -X
}
should be restored as
autoload sample
except that you can't know which of the -U -k -z options was specified
the first time the name was marked for autoload, so there's no way to
get this entirely right.
The other drawback to this scheme is that you can't save and restore
the "sticky emulation" bits of any of the functions.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author