Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pushing a string in the cut&paste stack
- X-seq: zsh-users 11408
- From: "Giulio Bottazzi" <giulio.bottazzi@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: pushing a string in the cut&paste stack
- Date: Mon, 16 Apr 2007 17:03:38 +0200
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kIjWWaOtSDPhqI3zixU46Fc6zwfO/uFKc+yB6zZv1zqtV2c5uDaxl98WavBepMI8KiL2NyJxpt0uOoPND4NwDlCmQcsjpMI8ymD0GQ0jtii64W+6wTAzxPOKe/HN57ArHaH9LZO1s3ai9WN8zYvo2zTEYYmtdSERdAdVof1lt7s=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CJITsPX0X1cVjoKjx/FgNKG0h47j9SzSLLB0CYUH6wUA7Fnky8Lxx9GB3zO5TuejpVseV24cmzpzxfsiGEgW8EchtmkPiK0ZpoXWrgh5ow50C/RVYtAmiEkBwUM6z5tBA6yy9ehPaqJTYhXdwHac1nOY3NUgSWRLPoEsaiy8DfA=
- In-reply-to: <20070416144411.GB20630@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <9fda5e550704160530p7e478483i4e8021a9e199ce23@xxxxxxxxxxxxxx> <20070416144411.GB20630@xxxxxxxxx>
On 4/16/07, Andy Spiegl <zsh.Andy@xxxxxxxxx> wrote:
Hi Giulio,
> I would like to know how can I push a string in the cut&paste stack of
> zle. In practice, I would like to have a shell function, name it
> "copythis", such that
>
> >copythis "blabla"
Maybe I am overlooking something obvious but why don't you just "kill" the
blabla with alt-d? Then it's in the killring for later usage. Typing
copythis and quotes seems a lot more complicated to me.
Hi Andy,
you are right, my example was silly :-) I choose it only for
simplicity. Actually I'm going to use Peter's suggestion to put the
output of a program in the shell killring, something like
myprogram | copythis
of course in this case copythis should be something like
copythis() { copy_this=`cat -` }
But if you know a better mechanism to do the same, I'm eager to learn!
Ciao,
Giulio.
P.S.: In any case, what about
copythis "bla $TERM bla"
?
--
Giulio Bottazzi <giulio.bottazzi@xxxxxxxxx>
http://giulio.bottazzi.googlepages.com
PGP Key ID:BAB0A33F
Messages sorted by:
Reverse Date,
Date,
Thread,
Author