]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/readprofile
rev: be careful with close()
[thirdparty/util-linux.git] / bash-completion / readprofile
1 _readprofile_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 '-m'|'--mapfile'|'-p'|'--profile')
9 local IFS=$'\n'
10 compopt -o filenames
11 COMPREPLY=( $(compgen -f -- $cur) )
12 return 0
13 ;;
14 '-M'|'--multiplier')
15 COMPREPLY=( $(compgen -W "multiplier" -- $cur) )
16 return 0
17 ;;
18 '-h'|'--help'|'-V'|'--version')
19 return 0
20 ;;
21 esac
22 OPTS="--mapfile
23 --profile
24 --multiplier
25 --info
26 --verbose
27 --all
28 --histbin
29 --counters
30 --reset
31 --no-auto
32 --help
33 --version"
34 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
35 return 0
36 }
37 complete -F _readprofile_module readprofile