]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/aliases/pacman.zsh
flexget: initial my_exists_movie plugin
[dotfiles.git] / zsh / aliases / pacman.zsh
index 4f662dbabcc3cb7f14df40b4836b4cd1d086c7b2..8cb322c9e0ad649572beacdd6ce78d34f9b82edf 100644 (file)
@@ -35,6 +35,12 @@ paci() {
         fi
     done
 }
+# 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-$$