From bd7badeeb2df9a0a2fbc26fbde6be198f8469521 Mon Sep 17 00:00:00 2001 From: desktop Date: Wed, 8 Nov 2023 15:59:00 +0300 Subject: [PATCH] df : print only dev filesystems. --- .linux/bash/module/disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.linux/bash/module/disk.sh b/.linux/bash/module/disk.sh index c4d1f3b..377edd9 100644 --- a/.linux/bash/module/disk.sh +++ b/.linux/bash/module/disk.sh @@ -1,5 +1,5 @@ # show only physical drive sizes. -alias df='df --si | sed -e "/^tmpfs/d" -e "/^udev/d" -e "/\.Private/d" -e "/^overlay/d" -e "/^shm/d" -e "/^devtmpfs/d"' +alias df='df --si | sed -e '1p' -e "/^\/dev\//!d"' # show combined size in SI. alias du="du -sh --si"