dotfiles/.config/scripts/functions/pacman
Sheldon Lee d9405c5166 Split .custom_bash_scripts into a multiple files.
The files are in ~/.config/scripts/functions.
2022-06-26 08:43:03 +08:00

8 lines
147 B
Bash

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