Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: some way to inherit kill ring in su'd shell?
- X-seq: zsh-users 13699
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: some way to inherit kill ring in su'd shell?
- Date: Sun, 11 Jan 2009 19:01:34 -0500
- In-reply-to: <090111110748.ZM12349@xxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Sun, 11 Jan 2009 11:07:48 -0800")
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <18789.30656.261463.382208@xxxxxxxxxxxxxxxxxx> <20090110095231.GA61601@xxxxxxxxxxxxxxxxxxxx> <m33afq97gg.fsf@xxxxxxxxxxxxxx> <20090111025418.GA7272@xxxxxxxxxxxxxxxxxxxx> <m3tz857mkm.fsf@xxxxxxxxxxxxxx> <090111110748.ZM12349@xxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
> Use the zle-line-init widget.
Very nice, Bart. I didn't know about zle-line-init.
> It's hard to export the kill ring because of limitations on the
> format of environment variables;
You could gzip and base64 encode some representation of it..
> So some variant of Phil's idea:
Cool!
> Of course this gets you the killring at the time zle starts up,
> not after you've been editing the "su" command line itself.
What would you think of adding another "special" widget like
zle-line-init but run when the line editor is finished, call
it something like zle-line-finished or zle-line-done?
Is that as simple as copying the zle-line-init code just below
the call to zlecore() and changing the function name in zleread()
in zle_main.c? Maybe I'll play with that..
thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author