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

Annotation of /bti/trunk/bti-bashcompletion

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1530 - (hide annotations)
Sat Jan 24 16:34:39 2009 UTC (12 years, 1 month ago) by gregoa
Original Path: bti/branches/upstream/current/bti-bashcompletion
File size: 427 byte(s)
[svn-upgrade] Integrating new upstream version, bti (012)
1 gregoa 1530 _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

  ViewVC Help
Powered by ViewVC 1.1.26