~ubuntu-branches/ubuntu/vivid/bash-completion/vivid-proposed

« back to all changes in this revision

Viewing changes to completions/bittorrent

  • Committer: Package Import Robot
  • Author(s): David Paleino
  • Date: 2011-02-06 22:00:58 UTC
  • mfrom: (1.1.4)
  • mto: (5.1.9 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20110206220058-zfh1gyor3vp1goqc
Tags: 1:1.3-1
* New upstream release
  - Fixed "service" completion, thanks to John Hedges (Closes: #586210)
  - Fixed typo in openssl completion (Closes: #609552)
  - Added ip completion (Closes: #600617)
  - Added _tilde(), fix ~username completion (Closes: #587095)
  - Add *.webm to mplayer file completions (Closes: #588079).
* debian/watch: fix to handle .tar.bz2 files
* Bump Standards-Version to 3.9.1, no changes needed
* Install upstream CHANGES file
* Update copyright years in debian/copyright
* debian/rules: reflect new source layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# btdownloadheadless(1) completion
 
2
 
 
3
have btdownloadheadless.py || have btdownloadcurses.py || \
 
4
have btdownloadgui.py &&
 
5
_btdownload()
 
6
{
 
7
    local cur prev
 
8
 
 
9
    COMPREPLY=()
 
10
    _get_comp_words_by_ref cur prev
 
11
 
 
12
    case $prev in
 
13
        --responsefile|--saveas)
 
14
            _filedir
 
15
            return 0
 
16
            ;;
 
17
    esac
 
18
 
 
19
     if [[ "$cur" == -* ]]; then
 
20
        COMPREPLY=( $( compgen -W '--max_uploads --keepalive_interval \
 
21
            --download_slice_size --request_backlog --max_message_length \
 
22
            --ip --minport --maxport --responsefile --url --saveas --timeout \
 
23
            --timeout_check_interval --max_slice_length --max_rate_period \
 
24
            --bind --upload_rate_fudge --display_interval --rerequest_interval \
 
25
            --min_peers --http_timeout --max_initiate --max_allow_in \
 
26
            --check_hashes --max_upload_rate --snub_time --spew \
 
27
            --rarest_first_cutoff --min_uploads --report_hash_failures' \
 
28
            -- "$cur" ) )
 
29
    else
 
30
        _filedir
 
31
    fi
 
32
} &&
 
33
complete -F _btdownload btdownloadheadless.py btdownloadcurses.py btdownloadgui.py
 
34
 
 
35
# Local variables:
 
36
# mode: shell-script
 
37
# sh-basic-offset: 4
 
38
# sh-indent-comment: t
 
39
# indent-tabs-mode: nil
 
40
# End:
 
41
# ex: ts=4 sw=4 et filetype=sh