Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Very useful !#^
- X-seq: zsh-users 11707
- From: "Seth Kurtzberg" <seth@xxxxxxx>
- To: <zsh-users@xxxxxxxxxx>
- Subject: RE: Very useful !#^
- Date: Fri, 3 Aug 2007 09:37:11 -0400
- In-reply-to: <87wswc7qj9.fsf@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9981863B7C3F4zzappergmailcom@xxxxxxxxxxx> <87wswc7qj9.fsf@xxxxxxxxxxxxxxxxxxx>
- Thread-index: AcfV0TLE/t0AnP+lRAOJx93rdbOFYgAAgFLw
I'm a bit confused (well, perhaps more than a bit :) ).
What does !^<tab> expand to. Is it the first argument of the preceding
command? What does the # do?
Thanks in advance,
Seth Kurtzberg
Software Engineer
Specializing in Security, Reliability, and the Hardware/Software Interface
-----Original Message-----
From: Tim [mailto:piglet@xxxxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Friday, August 03, 2007 8:26 AM
To: zsh-users@xxxxxxxxxx
Subject: Re: Very useful !#^
zzapper <david@xxxxxxxxxx> writes:
> Hi
> cos I keep forgetting this myself
>
>> cp verylongfilename.tex backup_!#^<tab>
> expands to
>> cp verylongfilename.tex backup_verylongfilename.tex
Oh, excellent. I've been wondering for ages if there's such a thing and
never got around to hunting it.
A related joy: !$ tab-expands to last word of previous line. Notably this
has a corresponding keypress, M-. or M-_ Is there a key for !#^ as well?
~Tim
--
http://pig.sty.nu/
http://pig.sty.nu/Pictures/gallery/
http://scot-pics.sty.nu/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author