about summary refs log tree commit diff
path: root/Completion/Unix/Command/_mkfifo
blob: a055e4a1cf855a2fce12573e63a966e168f70e44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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