X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/3d6d650d6e501ae2d961a6b418b7edeb021dba8d..158dc06f7ecd7f64e1aab5598be5b28fdc8ae926:/zsh/aliases/pacman.zsh diff --git a/zsh/aliases/pacman.zsh b/zsh/aliases/pacman.zsh index d2ef8f8..8cb322c 100644 --- a/zsh/aliases/pacman.zsh +++ b/zsh/aliases/pacman.zsh @@ -38,6 +38,10 @@ paci() { # will only work after another pacman completion has been called first compdef '_pacman_completions_all_packages' paci=pacman +pacstat() { + LC_ALL=C pacman -Sl | sed -n '/\[installed\]/s/^\([^ ]*\).*/\1/p' | uniq -c +} + pacdisowned() { tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$ db=$tmp/db