mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-11 16:51:26 +02:00
20 lines
618 B
Text
20 lines
618 B
Text
#compdef mkfifo gmkfifo
|
|
|
|
local -a aopts args
|
|
|
|
if _pick_variant gnu='Free Soft' unix --version; then
|
|
args=(
|
|
'(: * -)--help[display help information]'
|
|
'(: * -)--version[display version information]'
|
|
'(-m --mode)'{-m+,--mode=}'[specify file mode]: :_file_modes'
|
|
)
|
|
[[ $OSTYPE == linux* ]] && args+=(
|
|
'(--context)-Z[set SELinux security context to default]'
|
|
'(-Z)--context=-[like -Z, or specify SELinux security context]::SELinux security context:_selinux_contexts'
|
|
)
|
|
else
|
|
aopts=( -A '-*' )
|
|
args=( '-m+[specify file mode]: :_file_modes' )
|
|
fi
|
|
|
|
_arguments -s -S $aopts : '*:FIFO:_files' $args
|