summaryrefslogtreecommitdiff
path: root/bash_completion
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 /bash_completion
parent14c641aea51016fc9f3d2a6e9dabb585491e73f7 (diff)
downloadbash-completion-db00d73296c69f38ed0193dd4e41b50da0bcfc49.tar.gz
Use improved process name completion in pgrep in addition to killall.
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion4
1 files changed, 1 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
}