up vote 2 down vote favorite
share [g+] share [fb]

I'm using wajig to install packages, however when i've changed my shell to zsh it turned out that zsh doesn't list all packages in completion list, for ex.

apt-get install octave[TAB]

(about 70 completions) but when i try

wajig install octave[TAB]

or

aptitude install octave[TAB]

zsh shows only 19 completions

other shells i've tested (bash, fish) shows all ~70 completions in all 3 cases. So is there any way to 'fix' this completion in zsh?

link|improve this question
feedback

1 Answer

I get 73 entries for each of them. Check to make sure that you have completion functions called _apt, _aptitude and _wajig in your zsh completion function directory. Mine are in:

/usr/share/zsh/functions/Completion/Debian

Each of these functions is different, but they each call _deb_packages which is also in that directory.

link|improve this answer
hmm... i have these functions in this directory too, could you post your version of _wajig and _aptitude? I am not sure what should i change cause there is call to _deb_packages in it. paste-it.net/public/l71a52d <-- This is my default _wajig file – mk_cafe Nov 1 '09 at 17:49
Your _wajig file is identical to mine. Since _apt calls _deb_packages with "avail" and the other functions call it with "uninstalled" I would do an apt-get update and see if that helps. (and maybe an apt-get check or apt-get clean) – Dennis Williamson Nov 1 '09 at 20:19
still no improvement maybe i'll try to reconfigure whole zsh – mk_cafe Nov 2 '09 at 22:25
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.