Improved sed scripts, thanks to ColdWind
This commit is contained in:
parent
90b6776f4f
commit
dd7f7589da
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user