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

conditionally match part of file name to most recently modified file



Zshers,

I want to be able to type
"vim foo"
in order to edit the last file whose name contains the string
"foo".

I guess this might be achieved with compdef and compadd 
with the *(om[1]).  

The function would only do all this when
the condition of a complete filename is not met.

thanks

-- 
Eric Smith



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