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 13697
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: Zsh users <zsh-users@xxxxxxxxxx>
- Subject: Re: some way to inherit kill ring in su'd shell?
- Date: Sun, 11 Jan 2009 12:57:13 -0500
- In-reply-to: <20090111025418.GA7272@xxxxxxxxxxxxxxxxxxxx> (Phil Pennock's message of "Sat, 10 Jan 2009 18:54:19 -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>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> writes:
> You could always send zsh-users a patch to add the variables you
> want to the zsh/zleparameter module. :) If you do that, then it's
> much easier, since you just do something like:
That sounds like a good avenue to pursue.. thanks!
> Hrm. I was just thinking of having it be available in a variable to
> reference, not to initialise the new killring with it. Sorry. You'd
> probably want to add an init API to zsh/zleparameter too. Unless
> someone else points out an approach I'm missing.
From within zle, it looks like you can do something like
zle copy-region-as-kill <string>
to populate the cut buffer/kill ring.
But then you have to do that from a user-defined widget again.
I think having an API in zsh/zleparameter might be better..
will look into that at some point.
thanks!
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author