/etc/bash_completion.d/btool is in barry-util 0.18.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | # -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
# ex: ts=8 sw=8 noet filetype=sh
#
# btool(1) completion by Ryan Li <ryan@ryanium.com>
have btool &&
_btool()
{
local cur prev
COMPREPLY=()
cur=`_get_cword`
if [[ COMP_CWORD -eq 1 || "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-B -N -a -c -C -d -e -h -i -l -L
-m -M -n -p -P -s -S -t -T -v -X -z -Z' -- "$cur" ) )
else
prev=${COMP_WORDS[COMP_CWORD-1]}
case "$prev" in
-f)
_filedir
return 0
;;
-i)
COMPREPLY=( $( compgen -W \
'$( iconv --list | sed -e "s@//@@;" )' -- "$cur" ) )
return 0
;;
-p)
COMPREPLY=( $( compgen -W \
'$( bidentify | sed -e "s/,.*$//" )' \
-- "$cur" ) )
return 0
;;
*)
;;
esac
fi
} &&
complete -F _btool btool
|