1 # bash completion for augtool -*- shell-script -*-
5 local cur prev words cword
6 _init_completion || return
14 lenses="$(augtool --noload 'match /augeas/load/*/lens' | sed -e 's/.*@//')"
15 COMPREPLY=($(compgen -W "${lenses,,}" -- "${cur,,}"))
18 --root | --include | -!(-*)[rI])
24 if [[ "$cur" == -* ]]; then
25 local opts="$(_parse_help "$1")"
26 COMPREPLY=($(compgen -W '${opts:-$(_parse_help "$1")}' -- "$cur"))
31 complete -F _augmatch augmatch