Ainsi parlait Guillaume Rousse :
> Ainsi parlait Han :
> > Guillaume Rousse ([EMAIL PROTECTED]) wrote:
> > > Could the patches proposed here about completion be included into
> > > official mandrake bash package, or "not until they are accepted by
> > > bash developpers" ? http://www.caliban.org/bash/index.shtml
> >
> > Check the rpm package in my url ;)
>
> Thanks !
And here is the urpmi completion for bash :-)
# Mandrake urpmi
#
have urpmi &&
_urpmi()
{
COMPREPLY=()
local gcmd
# if we have a partial word to complete, restrict completions to
# matches of that word
[ -n "$2" ] && gcmd='grep "^$2"' || gcmd=cat
COMPREPLY=( $( gzip -dc /var/lib/urpmi/synthesis.hdlist.* |\
awk 'BEGIN {FS="@"} /info/ {print $1}' | sort -u | eval $gcmd ) )
}
[ "$have" ] && complete -F _urpmi urpmi
--
Guillaume Rousse <[EMAIL PROTECTED]>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html