]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/readprofile
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / readprofile
CommitLineData
c6f8c3f5
SK
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')
ce3e6b15 9 local IFS=$'\n'
c6f8c3f5
SK
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 ;;
d4f9b8d7
VS
18 '-h'|'--help'|'-V'|'--version')
19 return 0
20 ;;
c6f8c3f5 21 esac
0d5b9b8a
VS
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"
c6f8c3f5
SK
34 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
35 return 0
36}
37complete -F _readprofile_module readprofile