summaryrefslogtreecommitdiff
path: root/completions/chkconfig
diff options
context:
space:
mode:
Diffstat (limited to 'completions/chkconfig')
-rw-r--r--completions/chkconfig8
1 files changed, 6 insertions, 2 deletions
diff --git a/completions/chkconfig b/completions/chkconfig
index 31a575e3..b1dd925e 100644
--- a/completions/chkconfig
+++ b/completions/chkconfig
@@ -8,6 +8,7 @@ _chkconfig()
case $prev in
--level=[1-6]|[1-6]|--list|--add|--del|--override)
_services
+ _xinetd_services
return 0
;;
--level)
@@ -19,12 +20,15 @@ _chkconfig()
$split && return 0
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--list --add --del --override --level' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '--list --add --del --override --level' \
+ -- "$cur" ) )
else
if [[ $cword -eq 2 || $cword -eq 4 ]]; then
- COMPREPLY=( $( compgen -W 'on off reset resetpriorities' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'on off reset resetpriorities' \
+ -- "$cur" ) )
else
_services
+ _xinetd_services
fi
fi
} &&