config/linkchecker-completion
raw| 1 | # Install this file into directory /etc/bash_completion.d/ on a |
| 2 | # Debian Linux system. For other system read the documentation that |
| 3 | # comes with the bash-completion package. |
| 4 | |
| 5 | have linkchecker && |
| 6 | _linkcheck() { |
| 7 | local cur prev |
| 8 | |
| 9 | COMPREPLY=() |
| 10 | cur=${COMP_WORDS[COMP_CWORD]} |
| 11 | prev=${COMP_WORDS[COMP_CWORD-1]} |
| 12 | |
| 13 | if type _argcomplete &> /dev/null; then |
| 14 | _argcomplete "$@" |
| 15 | else |
| 16 | _filedir |
| 17 | fi |
| 18 | return 0 |
| 19 | } |
| 20 | [ "$have" ] && complete $filenames -F _linkcheck linkchecker |