| Server IP : 199.250.200.62 / Your IP : 216.73.217.89 Web Server : Apache System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : jasonp18 ( 1000) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/share/zsh/5.0.2/functions/ |
Upload File : |
#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