Bug#390574: zsh: Updated completions for schroot and dchroot

2006-10-03 Thread Clint Adams
That seems fine, except for the fact that Available chroots is translated, so everything up to and including the ':' needs removing. Okay, committing this then Index: _dchroot === RCS file:

Bug#390574: zsh: Updated completions for schroot and dchroot

2006-10-03 Thread Roger Leigh
Clint Adams [EMAIL PROTECTED] writes: That seems fine, except for the fact that Available chroots is translated, so everything up to and including the ':' needs removing. Okay, committing this then - compadd ${(os:,:)${${${$(dchroot -l)#Available chroots: }/\[*\]/}//[ -]/}} +

Bug#390574: zsh: Updated completions for schroot and dchroot

2006-10-02 Thread Roger Leigh
Clint Adams [EMAIL PROTECTED] writes: That's not quite right: % echo ${(os:,:)${${${$(dchroot -l)#Available chroots:}/\[*\]/}//[ ]/}} experimental fake sarge sid-file sid-file-source sid-snap sid-snap-source testsnap testsnap-source hardknott% dchroot -l Available chroots:

Bug#390574: zsh: Updated completions for schroot and dchroot

2006-10-01 Thread Roger Leigh
Package: zsh Version: 4.3.2-17 Severity: wishlist Tags: patch Hi, Attached is a patch to update the completions for schroot and dchroot, and also to add completions for dchroot-dsa. Since I'm new to zsh, some parts of the patch might be suboptimal. Feel free to alter it. The bit I'm not sure

Bug#390574: zsh: Updated completions for schroot and dchroot

2006-10-01 Thread Clint Adams
Hi, Attached is a patch to update the completions for schroot and dchroot, and also to add completions for dchroot-dsa. Since I'm new to zsh, some parts of the patch might be suboptimal. Feel free to alter it. The bit I'm not sure about is: - compadd ${${$(dchroot

Bug#390574: zsh: Updated completions for schroot and dchroot

2006-10-01 Thread Roger Leigh
Clint Adams [EMAIL PROTECTED] writes: Since I'm new to zsh, some parts of the patch might be suboptimal. Feel free to alter it. The bit I'm not sure about is: - compadd ${${$(dchroot -l)[3,-1]%,}:#\[*\]} ret=0 + compadd $(echo ${$(dchroot -l)[3,-1]%,} | sed -e 's/\[//g' -e 's/\]//g'

Bug#390574: zsh: Updated completions for schroot and dchroot

2006-10-01 Thread Clint Adams
That's not quite right: % echo ${(os:,:)${${${$(dchroot -l)#Available chroots:}/\[*\]/}//[ ]/}} experimental fake sarge sid-file sid-file-source sid-snap sid-snap-source testsnap testsnap-source hardknott% dchroot -l Available chroots: experimental, fake, sarge [stable,