mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 01:33:40 +01:00
perf(archlinux): improve paclist
performance (#11764)
This commit is contained in:
parent
f5cb9a6c97
commit
c0e811c90d
@ -25,10 +25,7 @@ alias pacown='pacman -Qo'
|
|||||||
alias pacupd="sudo pacman -Sy"
|
alias pacupd="sudo pacman -Sy"
|
||||||
|
|
||||||
function paclist() {
|
function paclist() {
|
||||||
local pkgs=$(LC_ALL=C pacman -Qqe)
|
pacman -Qqe | xargs -I{} -P0 --no-run-if-empty pacman -Qs --color=auto "^{}\$"
|
||||||
for pkg in ${(f)pkgs}; do
|
|
||||||
pacman -Qs --color=auto "^${pkg}\$" || break
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function pacdisowned() {
|
function pacdisowned() {
|
||||||
|
Loading…
Reference in New Issue
Block a user