1 # bash completion for is_installed
6 local cur prev words cword
7 _init_completion -n = || return
12 for (( i=1; i<${#words[@]}; i++ )); do
13 if [[ "${words[i]}" != -* ]]; then
21 # no argument required
25 COMPREPLY=( $(cd /var/log/packages; compgen -f -- "$cur") )
29 # argument required but no way to help
33 COMPREPLY+=( $(compgen -W 'help info file-search' -- "$cur") )
40 complete -F _is_installed is_installed