]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/ipcs
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / ipcs
CommitLineData
c6f8c3f5
SK
1_ipcs_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 '-i'|'--id')
9 COMPREPLY=( $(compgen -W "id" -- $cur) )
10 return 0
11 ;;
d4f9b8d7
VS
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
c6f8c3f5 15 esac
0d5b9b8a
VS
16 OPTS="--id
17 --help
18 --version
19 --shmems
20 --queues
21 --semaphores
22 --all
23 --time
24 --pid
25 --creator
26 --limits
27 --summary
28 --human
29 --bytes"
c6f8c3f5
SK
30 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
31 return 0
32}
33complete -F _ipcs_module ipcs