df upgrades
authorChris Koeritz <fred@gruntose.com>
Fri, 15 Oct 2021 04:55:35 +0000 (00:55 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 15 Oct 2021 04:55:35 +0000 (00:55 -0400)
clean_df shows without /dev/loop* and other cruds.
df alias also had -m removed since we can't find a trace of what that's supposed to do.

scripts/core/common.alias
scripts/files/clean_df.sh [new file with mode: 0644]

index 5143f048554525a2d919fd2558be27ee4de39ab2..7dc95071b977dc7a57e0f3a41821dd6796fd15ce 100644 (file)
@@ -36,7 +36,7 @@ define_yeti_alias copy='\cp -i -v'
 define_yeti_alias cp='\cp -i -v'
 define_yeti_alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
 define_yeti_alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
-define_yeti_alias df='\df -mh'
+define_yeti_alias df='\df -h'
 define_yeti_alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
 define_yeti_alias du='\du -h'
 define_yeti_alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
diff --git a/scripts/files/clean_df.sh b/scripts/files/clean_df.sh
new file mode 100644 (file)
index 0000000..48d5562
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# so simple but very handy; drops any partitions that we don't care about before showing the df listing.
+
+\df -h "${@}" | grep -v "loop\|udev\|tmpfs"