2005-08-03 18:59:08 +00:00
|
|
|
# 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.
|
2004-01-29 14:10:35 +00:00
|
|
|
|
2005-06-08 16:48:42 +00:00
|
|
|
have linkchecker &&
|
|
|
|
|
_linkcheck() {
|
2008-01-14 18:55:16 +00:00
|
|
|
local cur prev
|
|
|
|
|
|
|
|
|
|
COMPREPLY=()
|
|
|
|
|
cur=${COMP_WORDS[COMP_CWORD]}
|
|
|
|
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
|
|
|
|
|
|
|
|
|
if type _optcomplete &> /dev/null; then
|
2005-06-08 16:48:42 +00:00
|
|
|
_optcomplete "$@"
|
|
|
|
|
else
|
|
|
|
|
_filedir
|
|
|
|
|
fi
|
|
|
|
|
return 0
|
|
|
|
|
}
|
2008-01-14 19:13:52 +00:00
|
|
|
[ "$have" ] && complete $filenames -F _linkcheck linkchecker
|