_xbps: drop use of sed
This commit is contained in:
parent
5cbfdd5c5c
commit
21a4473f7a
@ -44,11 +44,11 @@ _xbps_properties=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
_xbps_all_packages() {
|
_xbps_all_packages() {
|
||||||
compadd "$@" -- $(xbps-query -Rs '' | sed 's/^... \([^ ]*\)-.* .*/\1/')
|
compadd "$@" -- ${${${(f)"$(xbps-query -Rs '')"}#??? }%%-[^- ]# *}
|
||||||
}
|
}
|
||||||
|
|
||||||
_xbps_installed_packages() {
|
_xbps_installed_packages() {
|
||||||
compadd "$@" -- $(xbps-query -l | sed 's/^.. \([^ ]*\)-.* .*/\1/')
|
compadd "$@" -- ${${${(f)"$(xbps-query -l)"}#?? }%%-[^- ]# *}
|
||||||
}
|
}
|
||||||
|
|
||||||
_xbps_checkvers() {
|
_xbps_checkvers() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user