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

29 lines
777 B
Plaintext

#compdef chkconfig
local curcontext="$curcontext" state line expl ret=1
case $OSTYPE in
linux*)
_arguments -C \
'(- 2)--list[list services]' \
'(-)--level[specify runlevels to apply to]:-:_values -s "" "run levels" 1 2 3 4 5 6 7' \
'(- 2)--add[add new service]' \
'(- 2)--del[remove service from chkconfig management]' \
'1:service name:_services' \
'2:state:(on off reset)' && ret=0
;;
irix*)
_arguments -C \
'(- 1)-s[print state of configuration flags]' \
'(1 -s)-f[set flag state]:configuration flag:->flag:state:(on off)' \
'1:configuration flag:->flag' && ret=0
if [[ -n "$state" ]]; then
_wanted conf-flags expl 'configuration flag' \
compadd ${${${(f)"$($words[1])"}[4,-1]##$'\t'}%% *} && ret=0
fi
;;
esac
return ret