]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/ipcmk
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / ipcmk
CommitLineData
061e4125
SK
1_ipcmk_module()
2{
3 local cur prev
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-M'|'--shmem')
9 COMPREPLY=( $(compgen -W "size" -- $cur) )
10 return 0
11 ;;
12 '-S'|'--semaphore')
13 COMPREPLY=( $(compgen -W "number" -- $cur) )
14 return 0
15 ;;
16 '-p'|'--mode')
17 COMPREPLY=( $(compgen -W "mode" -- $cur) )
18 return 0
19 ;;
20 '-h'|'--help'|'-V'|'--version')
21 return 0
22 ;;
23 esac
24 COMPREPLY=( $(compgen -W "--shmem --semaphore --queue --mode --help --version" -- $cur) )
25 return 0
26}
27complete -F _ipcmk_module ipcmk