dotfiles/.config/scripts/functions/pacman

8 lines
147 B
Plaintext
Raw Normal View History

#!/bin/bash
# pacman list sizes
pacsizes()
{
pacman -Qi $1 | awk '/^Name/{name=$3} /^Installed Size/{size=$4$5; print size, name;}' | sort -h
}