This commit is contained in:
Marc Beninca 2024-11-18 18:46:23 +01:00
parent 39dedbd440
commit ec16bff4b0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

27
sh/alias/lsblk.sh Normal file
View file

@ -0,0 +1,27 @@
# list block devices
lb() {
lbo \
"SIZE" \
"TYPE" \
"FSTYPE" \
"LABEL" \
"MOUNTPOINTS"
}
# base arguments
lbb() {
lsblk \
--noempty \
"${@}"
}
# output arguments
lbo() {
local argument
local arguments="NAME"
for argument in "${@}"; do
arguments="${arguments},${argument}"
done
lbb \
--output "${arguments}"
}