refactor(history): commit development branch
All checks were successful
/ job (push) Successful in 1m12s
All checks were successful
/ job (push) Successful in 1m12s
new development branch from root commit
This commit is contained in:
parent
3e562930f6
commit
020aaa0b9a
94 changed files with 4804 additions and 0 deletions
31
sh/alias/lsblk.sh
Normal file
31
sh/alias/lsblk.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
# list block devices
|
||||
lb() { a__list_block "${@}"; }
|
||||
a__list_block() {
|
||||
a__list_block_output \
|
||||
"SIZE" \
|
||||
"TYPE" \
|
||||
"FSTYPE" \
|
||||
"LABEL" \
|
||||
"MOUNTPOINTS" \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# base arguments
|
||||
lbne() { a__list_block_no_empty "${@}"; }
|
||||
a__list_block_no_empty() {
|
||||
lsblk \
|
||||
--noempty \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# output arguments
|
||||
lbo() { a__list_block_output "${@}"; }
|
||||
a__list_block_output() {
|
||||
local argument
|
||||
local arguments="NAME"
|
||||
for argument in "${@}"; do
|
||||
arguments="${arguments},${argument}"
|
||||
done
|
||||
a__list_block_no_empty \
|
||||
--output "${arguments}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue