lb,lbc,lbo

This commit is contained in:
Marc Beninca 2024-11-16 15:53:58 +01:00
parent 5af5181aa4
commit ca0399d4f3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

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