Unverified Commit c0e811c9 authored by WH-2099's avatar WH-2099 Committed by GitHub

perf(archlinux): improve `paclist` performance (#11764)

parent f5cb9a6c
......@@ -25,10 +25,7 @@ alias pacown='pacman -Qo'
alias pacupd="sudo pacman -Sy"
function paclist() {
local pkgs=$(LC_ALL=C pacman -Qqe)
for pkg in ${(f)pkgs}; do
pacman -Qs --color=auto "^${pkg}\$" || break
done
pacman -Qqe | xargs -I{} -P0 --no-run-if-empty pacman -Qs --color=auto "^{}\$"
}
function pacdisowned() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment