1 # -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
2 # ex: ts=8 sw=8 noet filetype=sh
4 # btool(1) completion by Ryan Li <ryan@ryanium.com>
14 if [[ COMP_CWORD -eq 1 || "$cur" == -* ]]; then
15 COMPREPLY=( $( compgen -W '-B -N -a -c -C -d -e -h -i -l -L
16 -m -M -n -p -P -s -S -t -T -v -X -z -Z' -- "$cur" ) )
18 prev=${COMP_WORDS[COMP_CWORD-1]}
26 COMPREPLY=( $( compgen -W \
27 '$( iconv --list | sed -e "s@//@@;" )' -- "$cur" ) )
31 COMPREPLY=( $( compgen -W \
32 '$( bidentify | sed -e "s/,.*$//" )' \
41 complete -F _btool btool