Use improved process name completion in pgrep in addition to killall.

This commit is contained in:
Ville Skyttä 2009-02-15 18:53:09 +02:00
parent 14c641aea5
commit db00d73296
2 changed files with 2 additions and 3 deletions

View File

@ -1072,9 +1072,7 @@ _pgrep()
COMPREPLY=()
cur=`_get_cword`
COMPREPLY=( $( compgen -W '$( command ps axo command | \
sed -ne "1d; s/^\[\?\([^-][^] ]*\).*$/\1/p" | \
sed -e "s/.*\///" )' -- $cur ) )
_pnames
return 0
}

1
debian/changelog vendored
View File

@ -125,6 +125,7 @@ bash-completion (200902xx) UNRELEASED; urgency=low
* Extract process name completion from _killall to _pnames, make it work
for others than Linux and FreeBSD.
* Fix process name completion with relative paths (RHBZ: #484578).
* Use improved process name completion in pgrep in addition to killall.
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing