mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-27 15:30:15 +08: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"
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user