]>
Commit | Line | Data |
---|---|---|
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 | } | |
33 | complete -F _ipcs_module ipcs |