From: Dominik Vogt <vogt@linux.vnet.ibm.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: "expanding" to copy-earlier-word
Date: Thu, 13 Aug 2015 10:57:27 +0100 [thread overview]
Message-ID: <20150813095727.GA19151@linux.vnet.ibm.com> (raw)
I've bound ctrl-j to copy-earlier-word, so I can copy the last word
of the previously executed command line to the current command
line. Is there a way to do the same as part of the expansion
process?
What I'd like to have this something like this:
$ make foo
$ ./<copy-earlier-word>
or even
$ make foo; ./<copy-earlier-word>
(where "<copy-earlier-word>" stands for something to be expanded
to the previous word, i.e. "foo").
In the shell history the command should be stored before expansion
takes place.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
next reply other threads:[~2015-08-13 10:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-13 9:57 Dominik Vogt [this message]
2015-08-13 9:59 ` Dominik Vogt
2015-08-13 10:24 ` Peter Stephenson
2015-08-13 11:45 ` Dominik Vogt
2015-08-13 12:16 ` Peter Stephenson
2015-08-13 16:22 ` Bart Schaefer
2015-08-13 16:48 ` Peter Stephenson
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=20150813095727.GA19151@linux.vnet.ibm.com \
--to=vogt@linux.vnet.ibm.com \
--cc=zsh-users@zsh.org \
/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).