Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: conditionally match part of file name to most recently modified file - take 2
- X-seq: zsh-users 11589
- From: Eric Smith <es@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: conditionally match part of file name to most recently modified file - take 2
- Date: Mon, 18 Jun 2007 23:46:14 +0200
- In-reply-to: <20070618110948.3d8d739f@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070617211644.GA11636@xxxxxxxxxxxx> <20070618110948.3d8d739f@xxxxxxxxxxxxxx>
Thanks Peter
Let me increase verbosity to describe the desired functionality.
I would like to have certain commands automatically run this function.
This I currently do with the following:
#compdef vim less sed perl ooffice ...
<function_definition>
Then I would like to type
"ooffice foo"
And the function would execute:
ooffice foo
if file foo existed, otherwise it would execute:
ooffice *foo*(om[1])
I would like this to be as efficient as possible.
Eric
> On Sun, 17 Jun 2007 23:16:44 +0200
> > I want to be able to type
> > "vim foo"
> > in order to edit the last file whose name contains the string
> > "foo".
...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author