Bug 60530 - Bugs fix in Gentoo's Zsh completion
|
Bug#:
60530
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: REMIND
|
Assigned To: usata@gentoo.org
|
Reported By: baptiste.daroussin@gmail.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: Bugs fix in Gentoo's Zsh completion
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-08-16 01:33 0000
|
_gcc-config:
remove dependencies to sed (pure zsh code now ;))
Change '(- :)'':profiles:_gcc_profile' to '(- :):profiles:_gcc_profile'
to make it work (at least for me ;)).
added local definition for profile
_portage:
add local definition to some vars
_gentoolkit:
add local definition for some vars
remove dependencies to sed/grep (pure zsh code now ;)) (quite longer, can
be optimize ;))
Change '(- :)'':' to '(- :):overlays:_overlays' to '(-
:):overlays:_overlays'
to make it work (at least for me ;)).
I don't like the way the completion for qpkg is done, I'll have a look at it as soon as I'll have time.
I also remove all "ugly" sed, cat, since zsh can do the stuff himself.
Reproducible: Always
Steps to Reproduce:
1. patch the function
2. try again ;)
3.
Applied these patches. Thanks. When you finish prettifying qpkg please let me
know.
Created an attachment (id=37637) [details]
gcc-config patch atop baptux's patched gcc-config
Thanks for the fixes baptux.
_gcc-config:
Your patch only lists the last profile for me.
_gentoolkit: qpkg and equery
It's slow because of this part:
#Reading informations from Portage
portdir="$(portageq portdir)"
#pkgdir="$(portageq pkgdir)"
portdir_overlay="$(portageq portdir_overlay)"
If that section is reverted, it will be fast again.
If there are any other problems with it, I'll be willing to fix them.
I'll pretify qpkg when I'll have time, and then open a new bug ;)
(the goal is to make it able to at least do qpkg -q -I <something>, it can't do it know).
For the rest, the fact is only that I hate seeing grep/cat/.../other stuff like that in zsh scripts, moreover in completion function. Completion should be pure zsh (I think)