On ِشخ, 2002-01-25 at 20:31, Guillaume Rousse wrote: > 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 >
And you call *that* completion?! :-) Here is what I call completion: {pts/3}% urpmi -aTAB {pts/3}% urpmi --allow-medium-change Completing option --allow-medium-change -- allow change of removable media --auto -- do not ask any questions --auto-select -- select the packages to update {pts/3}% u.uTAB {pts/3}% urpmi.update TAB {pts/3}% urpmi.update Contrib\ CD\ \(disk2\) Completing available media Contrib\ CD\ \(disk2\) Installation\ CD\ \(disk1\) {pts/3}% urpmi g-c-cTAB {pts/3}% urpmi gnome-control-center-1.5.11-4mdk Completing urpmi RPMs to install gnome-control-center-1.5.11-4mdk gnome-control-center-plus-1.5.11-3mdk And in all cases you can choose the match using cursor screen in full screen menu; and can select several matches if you like (of course you can always turn it off). That is what I call completion :-) -andrej