Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Refereing to elements in current command line



zzapper wrote:
Hi
Sorry if this is an old chestnut

I often type somethig like

cp fredjoesid.php danjoesid.php

At Present I use i a binding Control-O to do

cp fredjoesid.php fredjoesid.php
end then vi edit

But how else can I do this?



perhaps with !#

  cp fredjoesid.php !#$:s/fred/dan

then tab to check that the last argument expands the way you want



Messages sorted by: Reverse Date, Date, Thread, Author