Improve service(8) completion, also look for "msg_usage" (thanks to Elan Ruusamäe <glen@delfi.ee>)
This commit is contained in:
parent
f13ea4968b
commit
3a69bd3e93
1
CHANGES
1
CHANGES
@ -38,6 +38,7 @@ bash-completion (1.x)
|
||||
* Fixed obvious brokenness (typos) in contrib/mdadm
|
||||
* Patches from PLD Linux (thanks to Elan Ruusamäe):
|
||||
- avoid sed pipe as ps itself can omit the headers
|
||||
- improve service(8) completion, also look for "msg_usage"
|
||||
|
||||
[ Ville Skyttä ]
|
||||
* Split yum completion to contrib/_yum (no longer installed by default, the
|
||||
|
@ -655,7 +655,7 @@ _service()
|
||||
_services
|
||||
else
|
||||
COMPREPLY=( $( compgen -W '`sed -ne "y/|/ /; \
|
||||
s/^.*Usage.*{\(.*\)}.*$/\1/p" \
|
||||
s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\1/p" \
|
||||
$sysvdir/${prev##*/} 2>/dev/null`' -- $cur ) )
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user