blob: 68cea563b0e0c06de76147e73caeaca9e7c4f346 (
plain) (
tree)
|
|
_look_module()
{
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
'-t'|'--terminate')
COMPREPLY=( $(compgen -W "char" -- $cur) )
return 0
;;
esac
case $cur in
-*)
OPTS="-a --alternative -d --alphanum -f --ignore-case -t --terminate -V --version -h --help"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;
esac
compopt -o filenames
COMPREPLY=( $(compgen -f -- $cur) )
return 0
}
complete -F _look_module look
|