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

33 lines
738 B
Plaintext

#compdef stdbuf gstdbuf
local -a short long buf args
local i opt gnu=0
short=( -e -i -o )
long=( --error --input --output )
buf=( err in out )
opt='[set initial buffering for std${buf[i]}]: : _alternative
"sizes\: \: _numbers -u bytes size k M G"
"modes\:mode\:((0\:unbuffered L\:line\ buffered'
if _pick_variant gnu=GNU freebsd --version; then
gnu=1
args=(
'(- *)--help[display usage information]'
'(- *)--version[display version information]'
)
else
opt+=' B\:fully\ buffered'
fi
opt+='))"'
for ((i=1;i<=3;i++)); do
args+=( "(${long[i]})${short[i]}+${(e)opt}" )
(( gnu )) && args+=(
"(${short[i]})${long[i]}=${(e)opt}"
)
done
(( CURRENT > 2 )) && args+=( '*::command:_normal' )
_arguments -s -S $args