releasing version 012-1
[debian/bti.git] / bti-bashcompletion
1 _bti()
2 {
3         local cur prev
4         COMPREPLY=()
5         cur="${COMP_WORDS[COMP_CWORD]}"
6         prev="${COMP_WORDS[COMP_CWORD-1]}"
7         if [[ "${cur}" == -* ]] ; then
8                 COMPREPLY=( $(compgen -W "-a -p -P -H -b -d -v -h --account \
9                         --password --proxy --host --bash --debug --version \
10                         --help" -- ${cur}) )
11         fi
12
13         if [[ "${prev}" == "--host" ]] ; then
14                 COMPREPLY=( $(compgen -W "twitter identica" -- ${cur} ) )
15         fi
16
17         return 0
18 }
19
20 complete -F _bti bti