ambevar-dotfiles/.bin_pacman/pacfiles

14 lines
199 B
Bash
Executable File

#!/bin/sh
if [ "$1" = "-h" ]; then
cat <<EOF>&2
Usage: ${0##*/} [PACKAGES]
List of files in pacman packages sorted by size
EOF
exit
fi
pacman -Qlq "$@" | grep -v '/$' | xargs du -cbh | sort -h