mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
perf(archlinux): improve paclist
performance (#11764)
This commit is contained in:
parent
f5cb9a6c97
commit
c0e811c90d
1 changed files with 1 additions and 4 deletions
|
@ -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 a new issue