[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 3a69bd3e9379f8092d4cb69f1f83fcfeb98aa537
David Paleino
d.paleino at gmail.com
Thu Sep 17 20:33:31 UTC 2009
The following commit has been merged in the master branch:
commit 3a69bd3e9379f8092d4cb69f1f83fcfeb98aa537
Author: David Paleino <d.paleino at gmail.com>
Date: Thu Sep 17 22:24:21 2009 +0200
Improve service(8) completion, also look for "msg_usage" (thanks to Elan Ruusamäe <glen at delfi.ee>)
diff --git a/CHANGES b/CHANGES
index b0beae8..9506916 100644
--- a/CHANGES
+++ b/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
diff --git a/bash_completion b/bash_completion
index 58731b5..0e5bca7 100644
--- a/bash_completion
+++ b/bash_completion
@@ -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
--
bash-completion
More information about the Bash-completion-commits
mailing list