From: Samir Benmendil Date: Sun, 10 Apr 2016 13:29:32 +0000 (+0100) Subject: zsh: show foreign packages with pactstat X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/466f1c899181e5cd4b1617cdb2e1e232ace8d4c7?ds=sidebyside zsh: show foreign packages with pactstat --- diff --git a/zsh/aliases/pacman.zsh b/zsh/aliases/pacman.zsh index d44641b..518e015 100644 --- a/zsh/aliases/pacman.zsh +++ b/zsh/aliases/pacman.zsh @@ -45,6 +45,11 @@ paci() { compdef '_pacman_completions_all_packages' paci=pacman pacstat() { + printf "Packages:\n" + printf "%7d native\n" $(LC_ALL=C pacman -Qn | wc -l) + printf "%7d foreign\n" $(LC_ALL=C pacman -Qm | wc -l) + printf "%7d total\n" $(LC_ALL=C pacman -Q | wc -l) + printf "Repos:\n" LC_ALL=C pacman -Sl | sed -n '/\[installed\]/s/^\([^ ]*\).*/\1/p' | uniq -c }