3 local cur prev OPTS ARG
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 COMPREPLY=( $(compgen -W "id" -- $cur) )
12 '-h'|'--help'|'-V'|'--version')
16 COMPREPLY=( $(compgen -W "short full iso" -- $cur) )
20 local prefix realcur OUTPUT_ALL OUTPUT
22 prefix="${cur%$realcur}"
24 KEY ID OWNER PERMS CUID CUSER CGID
25 CGROUP UID USER GID GROUP CTIME
27 SIZE NATTCH STATUS ATTACH DETACH
30 USEDBYTES MSGS SEND RECV LSPID LRPID
34 RESOURCE DESCRIPTION LIMIT USED USE%
36 for WORD in $OUTPUT_ALL; do
37 if ! [[ $prefix == *"$WORD"* ]]; then
38 OUTPUT="$WORD ${OUTPUT:-""}"
42 COMPREPLY=( $(compgen -P "$prefix" -W "$OUTPUT" -S ',' -- $realcur) )
68 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
71 complete -F _lsipc_module lsipc