From: Saket Sathe <saket@cc.iitb.ac.in>
To: Eric Mangold <teratorn@world-net.net>
Cc: zsh-users@sunsite.dk
Subject: Re: Substitution
Date: Sun, 17 Apr 2005 18:42:31 +0530 [thread overview]
Message-ID: <426260BF.8020707@cc.iitb.ac.in> (raw)
In-Reply-To: <opspdn2mrn6k1y1x@aspen>
Eric Mangold wrote:
> On Sun, 17 Apr 2005 18:32:56 +0530, Saket Sathe <saket@cc.iitb.ac.in>
> wrote:
>
>> Hi,
>> Suppose I've typed these commands:
>>
>> # mv somefile1 /home/saket/stuff/books/
>> # acroread somefile.pdf
>> # mv somefile2 /home/saket/stuff/books/
>>
>> How can I substitute the '/home/saket/stuff/books/' of the first
>> command into the last command ?
>> Currently I just retype it again :(
>
>
> I would push M-. twice. Assuming you have emacs bindings set as in
> "bindkey -e"
>
> -Eric
Can '!:n' or something similar be used ? Or is '!:n' used only if you
want arguments from the _last_ command.
--
Saket.
... The gene pool sure could use a little chlorine.
next prev parent reply other threads:[~2005-04-17 13:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-17 13:02 Substitution Saket Sathe
2005-04-17 13:07 ` Substitution Eric Mangold
2005-04-17 13:12 ` Saket Sathe [this message]
2005-04-17 13:18 ` Substitution Eric Mangold
2005-04-17 13:27 ` Substitution Saket Sathe
2005-04-17 13:09 ` Substitution Alexey Tourbin
2005-04-18 10:31 ` Substitution zzapper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=426260BF.8020707@cc.iitb.ac.in \
--to=saket@cc.iitb.ac.in \
--cc=teratorn@world-net.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).