zsh-completion currently doesn't support eselect. I have written an _eselect function that does the work. I will attach it to this bug. It doesn't support every options of eselect (e.g the "--global" in "eselect bashcomp list --global"), but it supports as much as the bash-completion equivalent does. Please comment, and if you find it acceptable, include it in the zsh-completion package. Reproducible: Always Steps to Reproduce: 1. run zsh 2. type eselect <tab> Actual Results: file completion occurs Expected Results: eselect modules completion should have occurred
Created attachment 113708 [details] a zsh completion function for eselect
Created attachment 113749 [details] a better zsh completion function for eselect I rewrote it because it was badly written. Here it is.
Mamoru, how does this script look to you? Would you want to include it in the main zsh-completion package? Or would you rather we package it with eselect?
poke
The code is not good because, it doesn't work at least on gentoo/freebsd because of the sed command, I'll try to remove sed and use a pure zsh way to do the job. Anyway, I think this should be incorporated in zsh-completion, because zsh-completion already provides the completion for most of the gentoo tools.
Created attachment 134650 [details] Version without sed Here is a new version based on David's one which avoid the use of sed. Also remove the french header :). please test it (I can only test on gentoo/freebsd) In zsh completion function, it is better to use built-in function each time it is possible (sed for example is not always portable)
Added with 20080110