[pacman-dev] [PATCH] Update zsh completion.
Update zsh completion file to version 0.5-2 from AUR and add the new
options in pacman 3.1.
Signed-off-by: Nathan Jones
On Wed, Dec 05, 2007 at 10:45:23AM -0500, Nathan Jones wrote:
Update zsh completion file to version 0.5-2 from AUR and add the new options in pacman 3.1.
That's great, but any ideas why zsh completion doesn't work anymore? I don't think I ever got it working again since I reinstalled a few months ago, yet I'm still using nearly the same .zshrc , and the zsh completion file is the one that was sitting in git. I also tried with your patch applied, but it didn't help. I copied the file as /usr/share/zsh/site-functions/_pacman , and I have the following in .zshrc : autoload -Uz compinit promptinit compinit promptinit compdef pacman pacman.static=pacman The completion available by default seem to work correctly, eg mplayer, ssh, etc.. But that custom pacman one never works, it only wants to complete with the files in the CWD. Also, I didn't have any problem getting it to work the first time, so I have no idea what's wrong. I don't know how to get more informations about the problem either.
On Wed, Dec 05, 2007 at 06:57:20PM +0100, Xavier wrote:
On Wed, Dec 05, 2007 at 10:45:23AM -0500, Nathan Jones wrote:
Update zsh completion file to version 0.5-2 from AUR and add the new options in pacman 3.1.
That's great, but any ideas why zsh completion doesn't work anymore? I don't think I ever got it working again since I reinstalled a few months ago, yet I'm still using nearly the same .zshrc , and the zsh completion file is the one that was sitting in git. I also tried with your patch applied, but it didn't help.
I copied the file as /usr/share/zsh/site-functions/_pacman , and I have the following in .zshrc :
autoload -Uz compinit promptinit compinit promptinit
compdef pacman pacman.static=pacman
The compdef line should be unnecessary now, though it shouldn't hurt to have it. Try removing your ~/.zcompdump (a cache type file) and starting up a new zsh.
On Wed, Dec 05, 2007 at 01:46:12PM -0500, Nathan Jones wrote:
The compdef line should be unnecessary now, though it shouldn't hurt to have it.
Yes, I already tried to remove it (I saw I had a _hg file next to _pacman, and saw hg completion seemed to work without anything in .zshrc), but it didn't fix it.
Try removing your ~/.zcompdump (a cache type file) and starting up a new zsh.
Yes, that did it, thanks a lot! Now I regret I deleted it directly, without even looking what was in it :) But well, it doesn't matter, it probably wouldn't have helped much anyway. Thanks again.
On Dec 5, 2007 1:19 PM, Xavier
On Wed, Dec 05, 2007 at 01:46:12PM -0500, Nathan Jones wrote:
The compdef line should be unnecessary now, though it shouldn't hurt to have it.
Yes, I already tried to remove it (I saw I had a _hg file next to _pacman, and saw hg completion seemed to work without anything in .zshrc), but it didn't fix it.
Try removing your ~/.zcompdump (a cache type file) and starting up a new zsh.
Yes, that did it, thanks a lot! Now I regret I deleted it directly, without even looking what was in it :) But well, it doesn't matter, it probably wouldn't have helped much anyway. Thanks again.
The original patch is in my working tree too- thanks! Want to glance over the bash completion file and make sure that is up to date to? The syntax is quite simple... -Dan
On Wed, Dec 05, 2007 at 03:14:44PM -0600, Dan McGee wrote:
The original patch is in my working tree too- thanks! Want to glance over the bash completion file and make sure that is up to date to? The syntax is quite simple...
Looks good to me. The only difference I saw is that the bash completion does not indicate that -i and -c can be passed multiple times to do different actions.
participants (3)
-
Dan McGee
-
Nathan Jones
-
Xavier