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

Re: Using the same completion function for various commands



2010/12/6 JÃrÃmie Roquet <arkanosis@xxxxxxxxx>:
> Hi,
>
> 2010/12/6 Mikael Magnusson <mikachu@xxxxxxxxx>:
>> You can also do this in your .zshrc instead of in the completer if you
>> wish, just write
>> compdef _foo -p 'foo_*'
>>
>> At least that's what the documentation says, it doesn't seem to work that well.
>
> It works fine for me with 4.3.10, did I miss something?

When i tried compdef _du -p foo_\*, i only got single-letter options completed.

-- 
Mikael Magnusson



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