From ccb8c91803ad4b7049a9d7d31c763df0c1e62b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 18 Jun 2011 23:26:57 +0300 Subject: [PATCH] service: Always include start and stop in service command completions. Not all services are in /etc/init.d files (such as systemd ones) from which command completions can be parsed from. --- completions/service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/service b/completions/service index 515c6d15..82badde5 100644 --- a/completions/service +++ b/completions/service @@ -22,7 +22,7 @@ _service() sysvdir=/etc/rc.d/init.d || sysvdir=/etc/init.d COMPREPLY=( $( compgen -W '`sed -e "y/|/ /" \ -ne "s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\2/p" \ - $sysvdir/${prev##*/} 2>/dev/null`' -- "$cur" ) ) + $sysvdir/${prev##*/} 2>/dev/null` start stop' -- "$cur" ) ) fi return 0