- fixed UTF-8 problem with _get_cword(), thanks to Andrei Paskevich (Closes: #472132) - fixed autoremove completion, thanks to Flavio Visentin (Closes: #474974) - cmf and CMF added to playmidi completion (Closes: #365658) - added rrdtool completion, thanks to Justin Pryzby (Closes: #428641) - added OpenDocument completion for unzip/zipinfo (.od{f,g,p,s,t}) (Closes: #472940)
22 lines
375 B
Plaintext
22 lines
375 B
Plaintext
# BitKeeper completion adapted from code by Bart Trojanowski <bart@jukie.net>
|
|
#
|
|
# $Id: bitkeeper,v 1.2 2002/06/12 22:03:23 ianmacd Exp $
|
|
#
|
|
|
|
_bk() {
|
|
local BKCMDS
|
|
|
|
COMPREPLY=()
|
|
cur=`_get_cword`
|
|
|
|
BKCMDS="$( bk help topics | grep '^ bk' | cut -d ' ' -f 4 | \
|
|
xargs echo )"
|
|
|
|
COMPREPLY=( $( compgen -W "$BKCMDS" -- "$cur" ) )
|
|
_filedir
|
|
|
|
return 0
|
|
}
|
|
complete -F _bk bk
|
|
|