1 # bash completion for is_installed -*- shell-script -*-
5 local cur prev words cword
6 _init_completion -n = || return
11 for (( i=1; i<${#words[@]}; i++ )); do
12 if [[ "${words[i]}" != -* ]]; then
20 # no argument required
24 COMPREPLY=( $(cd /var/log/packages; compgen -f -- "$cur") )
28 # argument required but no way to help
32 COMPREPLY+=( $(compgen -W 'help info file-search' -- "$cur") )
39 complete -F _is_installed is_installed