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

Re: using completion rules of another application



Hi,

2010/11/9 Eric Smith <es@xxxxxxxxxxxx>:
> If I save a command like,
> echo "vim $(which $1)">bin/whichv
> (find the pathname of an executable with builtin `which'
> and then edit that pathname)
>
> Now at the command line I want to type
> $ bin/whichv comm<tab>
>
> I want to have the completions that `which' would have.
>
> How would I do this?

compdef whichv=which

Best regards,

-- 
JÃrÃmie



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