zsh-users
 help / color / mirror / code / Atom feed
* "expanding" to copy-earlier-word
@ 2015-08-13  9:57 Dominik Vogt
  2015-08-13  9:59 ` Dominik Vogt
  2015-08-13 10:24 ` Peter Stephenson
  0 siblings, 2 replies; 7+ messages in thread
From: Dominik Vogt @ 2015-08-13  9:57 UTC (permalink / raw)
  To: Zsh Users

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-13 16:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-13  9:57 "expanding" to copy-earlier-word Dominik Vogt
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

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).