Files
RedBear-OS/recipes/shells/zsh/source/Completion/Unix/Command/_numfmt
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

25 lines
1.5 KiB
Plaintext

#compdef numfmt gnumfmt
local units="((auto\:1K\ =\ 1000,\ 1Ki\ =\ 1024 si\:1K\ =\ 1000 iec\:1K\ =\ 1024 iec-i\:1Ki\ =\ 1024))"
_arguments -S \
'(H)--debug[print warnings about invalid input]' \
'(H -z --zero-terminated -d --delimiter)'{-d+,--delimiter=}'[use specified field delimiter instead of whitespace]:delimiter' \
'(H)--field=[replace numbers in specified input fields]:fields [1]' \
'(H)--format=[use printf style floating-point format]:format' \
"(H)--from=[auto-scale input numbers to specified units]:unit [none]:$units" \
'(H)--from-unit=[specify the input unit size]:unit size [1]' \
'(H)--grouping[use locale-defined digit grouping e.g. 1,000,000]' \
'(H)--header=-[print (without converting) initial header lines]::header lines [1]' \
'(H)--invalid=[specify failure mode for invalid numbers]:mode [abort]:(abort fail warn ignore)' \
'(H)--padding=[pad the output to specified width]:width; positive - right-align; negative - left-align' \
'(H)--round=[use specified method for rounding when scaling]:method [from-zero]:(up down from-zero towards-zero nearest)' \
'(H)--suffix=[add suffix to output numbers and accept optional suffix in input numbers]:suffix' \
"(H)--to=[auto-scale output numbers to specified unit]:unit:$units" \
'(H)--to-unit=[specify output unit size]:unit size [1]' \
'(H -z --zero-terminated -d --delimiter)'{-z,--zero-terminated}'[line delimiter is NUL, not newline]' \
'(H)*: :_guard "^-*" number' \
+ 'H' \
'(- *)--help[display usage information]' \
'(- *)--version[display version information]'