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

Re: default to file completion



On 18 December 2011 11:11, Miek Gieben <miek@xxxxxxx> wrote:
> Hello,
>
> I've tried searching a bit, but I can not seem to find this specific
> problem. I've enablef completion in zsh and now I'm running a program
> of my own making (hence unknown to zsh): 'scan'
>
> If I use tab completion the following happens:
>
>    ./scan -zone <TAB>
>
> And nothing gets completed. How can I tell zsh to fallback to filename
> completion at that point?

"scan" is a command that already has completion in zsh (it's part of
mh), but if you don't have mh it won't be able to produce any
completions. To disable a bundled completion, run compdef -d scan
after running compinit.

-- 
Mikael Magnusson



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