Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: autocomplete in program
YT wrote:
> If I send an incomplete filename to
> a function, and then do the [[ -f $file ]]
> test to determine if it is a file, and if it
> isn't, can I programmatically do the
> equivalent of interactive TAB, and if this
> yields and unambiguous filename, use
> that instead?
I got help on #zsh on irc.freenode.net:
matches=( ${file}*(N) )
--
underground experts united
http://user.it.uu.se/~embe8573
Messages sorted by:
Reverse Date,
Date,
Thread,
Author