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



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