Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: bash convert: new completion system skeleton?
- X-seq: zsh-users 5819
- From: Borzenkov Andrey <Andrey.Borzenkov@xxxxxxxxxxx>
- To: "'Oliver Kiddle'" <okiddle@xxxxxxxxxxx>, "'clemens fischer'" <ino-qc@xxxxxxxxxxxxxxxxxxxxxx>
- Subject: RE: bash convert: new completion system skeleton?
- Date: Fri, 24 Jan 2003 14:19:04 +0300
- Cc: zsh-users@xxxxxxxxxx
- Importance: Normal
- In-reply-to: <1715.1043406768@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
>
> I could easily write a function to allow zsh to use completions written
> for bash:
>
> local COMP_REPLY
> local COMP_CWORD=$CURRENT
> local -a COMP_WORDS
> COMP_WORDS=( $words )
> setopt localoptions
> emulate sh
> "$@"
> compadd - "${COMPREPLY[@]}"
>
cool. I guess it could be really useful.
> Would be enough for _qconfirm (I think). Would that be useful? Or do we
> have a perl guru who can write a program to convert the function?
Or scan bash_profile/bashrc for complete -F and compdef all commands to use
wrapper unless already defined. It would allow almost transparent change
between bash and zsh. It could be added to compinstall then or even to
compinit with style to turn it off/on.
Would it be useful?
Of
> course it is better to rewrite the functions properly to make full use
> of zsh's greater power.
>
Sure.
-andrey
Messages sorted by:
Reverse Date,
Date,
Thread,
Author