/[debian]/bti/trunk/bti-bashcompletion
ViewVC logotype

Contents of /bti/trunk/bti-bashcompletion

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2235 - (show annotations)
Wed Aug 18 15:37:02 2010 UTC (10 years, 5 months ago) by gregoa
File size: 636 byte(s)
* New upstream release:
  - support for replying to notices
  - adds OAuth support for both twitter and identi.ca (closes: #588235)
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 -A -p -P -H -b -d -v -s -n -g -h -r
9 --account --action --password --proxy --host --bash \
10 --user --debug --dry-run --shrink-urls --page --version --verbose \
11 --help --replyto" -- ${cur}) )
12 fi
13
14 if [[ "${prev}" == "--host" ]] ; then
15 COMPREPLY=( $(compgen -W "twitter identica" -- ${cur} ) )
16 fi
17
18 if [[ "${prev}" == "--action" ]] ; then
19 COMPREPLY=( $(compgen -W "friends public update user replies" -- ${cur} ) )
20 fi
21
22 return 0
23 }
24
25 complete -F _bti bti

  ViewVC Help
Powered by ViewVC 1.1.26