Files
RedBear-OS/recipes/shells/zsh/source/Completion/Unix/Command/_mknod
T
vasilito ff4ff35918 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

46 lines
1.3 KiB
Plaintext

#compdef mknod gmknod
# - @todo Major/minor device numbers could be completed using /proc/devices on
# Linux and e.g. `stat -f %Hr /dev/*` on BSD/Darwin
# - @todo Device numbers should not be completed given p or w types
local -a aopts args
if _pick_variant gnu='Free Soft' $OSTYPE --version; then
args=(
'(: * -)--help[display help information]'
'(: * -)--version[display version information]'
'(-m --mode)'{-m+,--mode=}'[specify file mode]: :_file_modes'
'1:special file:_files'
'2:special file type:((
b\:"block (buffered) special file"
{c,u}\:"character (unbuffered) special file"
p\:FIFO
))'
'3:major device number'
'4:minor device number'
)
[[ $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=(
'-F+[specify device-number format]:device-number format:(
native 386bsd 4bsd bsdos freebsd hpux isc linux netbsd osf1 sco solaris
sunos svr3 svr4 ultrix
)'
'1:special file:_files'
'2:special file type:((
b\:"block-type device"
c\:"character-type device"
w\:"whiteout node"
))'
'3:major device number'
'4:minor device number'
)
fi
_arguments -s -S $aopts : $args