Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"expanding" to copy-earlier-word
- X-seq: zsh-users 20402
- From: Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: "expanding" to copy-earlier-word
- Date: Thu, 13 Aug 2015 10:57:27 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: vogt@xxxxxxxxxxxxxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author