You are not logged in.
A long while ago, I found a set of functions for zsh tab-completion for pacman in the Arch mailing list archives. I've improved them recently to make it faster (reading files from /var/lib/pacman instead of calling pacman itself).
Anyway, you can find my version in the AUR: zsh-pacman
enjoy!
Offline
Great!
...but how to make that work?
What is that to provide specifically?
Offline
the package simply installs a set of functions for zsh to interpret when pressing tab after the pacman command. it's installed to /usr/share/zsh/site-functions for you.
simply restart zsh, type pacman -S pa<tab> and you will see a list of all available packages to install that start with pa.
0.2 fixed a bug, but broke most of the script! i fixed it now with 0.3. sorry!
Offline
Well, the problem is that it doesn't work here O_o
Offline
thats nice. i'll have to try it out sometime
Offline
Well, the problem is that it doesn't work here O_o
Are you using ZSH instead of the default BASH? This only works with ZSH.
Offline
i'm hoping that if enough people like this, it will be included with arch's zsh package. so everyone who tries this out, please say hello, and then we can try convincing the maintainer.
Offline
Of course I'm using ZSH. I'm not that retarded yet ;-)
paranoos, could you post your /etc/zsh/zshrc/ and ~/.zshrc? Maybe the truth hides there.
Offline
Of course I'm using ZSH. I'm not that retarded yet ;-)
paranoos, could you post your /etc/zsh/zshrc/ and ~/.zshrc? Maybe the truth hides there.
Do you have ZSH's completion system loaded?
autoload -U compinit
compinit
Offline
Woohoo.
I had only the first line in zshrc. Added the second one and it seems to work.
Thanks.
-edit-
Wee, it's quite lovely. Great job, paranoos.
Now I should seek some decent PID-handling/kill completion solution.
Offline
damn - this is what I was waiting for !!!
great job
IBM T41p - 2373-xXx - kernel26thinkpad
Offline
Works nice, thank you.
Offline
Hahah, so my half finished one in /var/abs/local no longer has to be finished!
Yessssss.
Offline
I merged zsh-pacman and netcfg completion to a new package on aur.
zsh-completion v0.1 is released !!!!! Let's play with it !
Any resemblance to grammar or spelling mistakes is purely coincidental and independant of the willing of the author
Offline
Sounds nice. I might try out zsh to try this out.
Offline
Now that I've finished the first 50 pages of pws's zsh-user-guide I'm also using zsh, but consider the zsh-pacman pkg in aur obsolete, since zsh-completion has the same...
Offline
I get the following error trying to make the package.
[f|~/pkgbuilds]% makepkg PKGBUILD
==> Entering fakeroot environment
==> Making package: zsh-pacman 0.3-1 (Sun Oct 15 13:18:57 PDT 2006)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> ERROR: _pacman was not found in the build directory and is not a proper URL.
==> Aborting...
Anyone know what's up?
Offline
you need to get the whole tarball ( http://aur.archlinux.org/packages/zsh-p … man.tar.gz ), not just the PKGBUILD.
Offline
everyone who tries this out, please say hello
hello!
works great -- thanks.
Offline
Been using zsh-pacman for a while, works great, but I'm having some issues with your netcfg completions, stuff like this:
02:14:14 %] iwconfig [~]
_arguments:comparguments:208: invalid argument: device[device]
·¬»· i am shadowhand, powered by webfaction
Offline
Hi,
This never fails to impress my non-zsh using friends.
Great work,
Nic
Desktop :Athlon64 2.2 GHz
Laptop :Toshiba R100 1GHz
Offline
Been using zsh-pacman for a while, works great, but I'm having some issues with your netcfg completions, stuff like this:
02:14:14 %] iwconfig [~] _arguments:comparguments:208: invalid argument: device[device]
This is strange i cant reproduce this bug. Any details ?
Just for informations:
zsh --version ~
zsh 4.2.6 (i686-pc-linux-gnu)
Any resemblance to grammar or spelling mistakes is purely coincidental and independant of the willing of the author
Offline
This is strange i cant reproduce this bug. Any details ?
Just for informations:
zsh --version ~ zsh 4.2.6 (i686-pc-linux-gnu)
10:55:06 %] zsh --version [~]
zsh 4.3.2 (i686-pc-linux-gnu)
·¬»· i am shadowhand, powered by webfaction
Offline
Does this only work as root?
Root uses bash, but my normal users (who can execute pacman fine) run zsh, and the script won't work for them.
Offline
Holy hell ZSH is awesome!!! I just installed the <code>zsh-pacman</code> tab-complete function and wondered why the secondary options aren't working. I just started messing with ZSH tonight and don't know enough to try and edit the <code>_pacman</code> file myself, but it looks like those things are defined properly, but the options don't show when I do:
% pacman -S<TAB>
Sorry, no matches for: `package' or `option'
Any thoughts?
Offline