summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-02-15 18:53:09 +0200
committerVille Skyttä <ville.skytta@iki.fi>2009-02-15 18:53:09 +0200
commitdb00d73296c69f38ed0193dd4e41b50da0bcfc49 (patch)
treebdd4799d4a78190cbe78c4189e469ff6fae56f9a
parent14c641aea51016fc9f3d2a6e9dabb585491e73f7 (diff)
downloadbash-completion-db00d73296c69f38ed0193dd4e41b50da0bcfc49.tar.gz
Use improved process name completion in pgrep in addition to killall.
-rw-r--r--bash_completion4
-rw-r--r--debian/changelog1
2 files changed, 2 insertions, 3 deletions
diff --git a/bash_completion b/bash_completion
index 383d23ee..542031b5 100644
--- a/bash_completion
+++ b/bash_completion
@@ -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
}
diff --git a/debian/changelog b/debian/changelog
index 5d8c6cbb..67453a66 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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