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

Diff of /bti/trunk/bti-bashcompletion

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1532 by gregoa, Sat Jan 24 16:36:56 2009 UTC revision 1623 by gregoa, Thu Mar 12 15:55:34 2009 UTC
# Line 5  _bti() Line 5  _bti()
5          cur="${COMP_WORDS[COMP_CWORD]}"          cur="${COMP_WORDS[COMP_CWORD]}"
6          prev="${COMP_WORDS[COMP_CWORD-1]}"          prev="${COMP_WORDS[COMP_CWORD-1]}"
7          if [[ "${cur}" == -* ]] ; then          if [[ "${cur}" == -* ]] ; then
8                  COMPREPLY=( $(compgen -W "-a -p -P -H -b -d -v -h --account \                  COMPREPLY=( $(compgen -W "-a -A -p -P -H -b -d -v -h
9                          --password --proxy --host --bash --debug --version \                          --account --action --password --proxy --host --bash \
10                          --help" -- ${cur}) )                          --user --debug --version --help" -- ${cur}) )
11          fi          fi
12    
13          if [[ "${prev}" == "--host" ]] ; then          if [[ "${prev}" == "--host" ]] ; then
14                  COMPREPLY=( $(compgen -W "twitter identica" -- ${cur} ) )                  COMPREPLY=( $(compgen -W "twitter identica" -- ${cur} ) )
15          fi          fi
16    
17            if [[ "${prev}" == "--action" ]] ; then
18                    COMPREPLY=( $(compgen -W "friends public update user replies" -- ${cur} ) )
19            fi
20    
21          return 0          return 0
22  }  }
23    

Legend:
Removed from v.1532  
changed lines
  Added in v.1623

  ViewVC Help
Powered by ViewVC 1.1.26