PageRenderTime 181ms CodeModel.GetById 179ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete/bk

http://github.com/brinkman83/bashrc
#! | 23 lines | 16 code | 7 blank | 0 comment | 0 complexity | 35f9a650e442b5f90ebbf12171ad2d3a MD5 | raw file
 1# BitKeeper completion adapted from code by  Bart Trojanowski <bart@jukie.net>
 2#
 3# $Id: bitkeeper,v 1.2 2002/06/12 22:03:23 ianmacd Exp $
 4#
 5comp_include _get_cword _filedir
 6
 7_bk()
 8{
 9	local BKCMDS
10
11	COMPREPLY=()
12	cur=`_get_cword`
13
14	BKCMDS="$( bk help topics | grep '^  bk' | cut -d ' ' -f 4 | \
15		   xargs echo )"
16
17	COMPREPLY=( $( compgen -W "$BKCMDS" -- "$cur" ) )
18	_filedir
19
20	return 0
21} # _bk()
22
23