Improved sed scripts, thanks to ColdWind

This commit is contained in:
David Paleino 2009-01-29 21:25:01 +01:00
parent 90b6776f4f
commit dd7f7589da

View File

@ -1011,8 +1011,9 @@ _killall()
_signals
else
COMPREPLY=( $( compgen -W '$( command ps axo command | \
sed -ne "1d; s/^\[\?\([^-][^] ]*\).*$/\1/p" | \
sed -e "s/.*\///" -e "s/:$//")' -- $cur ) )
sed -e "1d; s/ .*//g; s:^/.*/::g; s/:$//g;" \
-e "s/^-//g; s/^\[//g; s/\]$//g; s:/.*::g")' \
-- $cur ) )
fi
return 0