[paludis-user] More enchantment proposal

Bernd Steinhauser exherbo at bernd-steinhauser.de
Tue Aug 12 12:55:11 UTC 2008


Goran Mekić schrieb:
>> 1) <Tab> completion. Works great here in bash and zsh.
>     Is anyone working on zsh completion, because it takes ages to complete
> an option?
> 
If you can live without the completion of package names and categories,
you can disable these. Disable the three lines with an # in front:

     if [[ $PREFIX != */* ]];then
#        paludis_pkgs=(${(o)${${(M)${(f)"$(paludis --log-level silent
--list-packages)"}:#\* *}##\* }##*/})
         _wanted paludis_pkgs expl "packages" compadd - ${(@)paludis_pkgs}
#        categories=(${${(M)${(f)"$(paludis --log-level silent
--list-categories)"}:#\* *}##\* })
         _wanted cat_packages expl "category/packages" compadd -S "/"
$categories
     else
         compset -P '*/'
#       packages=(${${${(M)${(f)"$(paludis --log-level silent --category
${IPREFIX//\//} --list-packages)"}:#\* *}##\* }//$IPREFIX/})
         _wanted cat_packages expl "category/packages" compadd
${(@)packages}
     fi


As said, this disables the completion of packages and categories, but
speeds up everything else.

Regards,
Bernd




More information about the paludis-user mailing list