1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:29:06 -08:00

document dfu

This commit is contained in:
Connor Olding 2021-08-01 08:36:35 -07:00
parent 14677b3acf
commit 364a0eff66

8
sh/dfu
View file

@ -6,7 +6,13 @@
dfu() { ### @-
### pretty-print `df` in GiB.
###
### **TODO:** restore examples.
### ```
### $ dfu
### Filesystem Used Max Left Misc
### /dev 0.00 0.46 0.46 0.00
### / 17.20 23.22 6.01 1.27
### ```
[ $# -le 0 ] || { printf "%s\n" "$0: too many arguments" >&2; return 1; }
df -xtmpfs | awk '
NR==1{printf"%-20s %7s %7s %7s %7s\n","Filesystem","Used","Max","Left","Misc"}