ff4ff35918
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.
36 lines
597 B
Plaintext
36 lines
597 B
Plaintext
#compdef zgetattr zsetattr zdelattr zlistattr
|
|
|
|
local context state line expl ret=1 REPLY
|
|
|
|
case $service in
|
|
zgetattr)
|
|
_arguments \
|
|
'1:file:_files' \
|
|
'2:attribute:->attrs' \
|
|
'3:parameter'
|
|
;;
|
|
zsetattr)
|
|
_arguments \
|
|
'1:file:_files' \
|
|
'2:attribute:->attrs' \
|
|
'3:value'
|
|
;;
|
|
zdelattr)
|
|
_arguments \
|
|
'1:file:_files' \
|
|
'2:attribute:->attrs'
|
|
;;
|
|
zlistattr)
|
|
_arguments \
|
|
'1:file:_files' \
|
|
'2:parameter'
|
|
;;
|
|
esac && ret=0
|
|
|
|
if [[ $state = attrs ]]; then
|
|
zlistattr ${(Q)${~line[1]}} REPLY 2> /dev/null
|
|
_wanted -C "$context[1]" attrs expl 'attribute' compadd -a REPLY && ret=0
|
|
fi
|
|
|
|
return ret
|