Debian Codegraph @

bash-completion/namei

raw
1 _namei_module()
2 {
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-h'|'--help'|'-V'|'--version')
9 return 0
10 ;;
11 esac
12 case $cur in
13 -*)
14 OPTS=" --context
15 --help
16 --version
17 --mountpoints
18 --modes
19 --owners
20 --long
21 --nosymlinks
22 --vertical"
23 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
24 return 0
25 ;;
26 esac
27 local IFS=$'\n'
28 compopt -o filenames
29 COMPREPLY=( $(compgen -f -- $cur) )
30 return 0
31 }
32 complete -F _namei_module namei