File: linkchecker-completion

package info (click to toggle)
linkchecker 10.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,132 kB
  • sloc: python: 13,154; makefile: 134; sh: 71; xml: 36; sql: 20; javascript: 19; php: 2
file content (20 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Install this file into directory /etc/bash_completion.d/ on a
# Debian Linux system. For other system read the documentation that
# comes with the bash-completion package.

have linkchecker &&
_linkcheck() {
    local cur prev

    COMPREPLY=()
    cur=${COMP_WORDS[COMP_CWORD]}
    prev=${COMP_WORDS[COMP_CWORD-1]}

    if type _argcomplete &> /dev/null; then
        _argcomplete "$@"
    else
        _filedir
    fi
    return 0
}
[ "$have" ] && complete $filenames -F _linkcheck linkchecker