zsh-workers
 help / color / mirror / code / Atom feed
69047c6903c688a5682c3f8ee90f8074fdf5d46e blob 503 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#autoload

# Pass -a attribute to filter types, e.g.:
#   -a domain    - for process types
#   -a file_type - for file types
#   -a port_type - for network ports

local -a setypes expl extra

zparseopts -E -D -a extra a:

if (( $#extra )); then
  setypes=( ${${${(f)"$(_call_program selinux-types seinfo $extra --flat -x)"}#[[:blank:]]}:1} )
else
  setypes=( ${(f)"$(_call_program selinux-types seinfo --flat -t)"} )
fi

_description selinux-types expl "selinux type"
compadd "$@" "$expl[@]" -a setypes
debug log:

solving 69047c690 ...
found 69047c690 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).