From 70734afa93c099fa78a1e9d801d99685b7cd39d6 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 15 Oct 2021 00:55:35 -0400 Subject: [PATCH] df upgrades 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 | 2 +- scripts/files/clean_df.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 scripts/files/clean_df.sh diff --git a/scripts/core/common.alias b/scripts/core/common.alias index 5143f048..7dc95071 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -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 index 00000000..48d55622 --- /dev/null +++ b/scripts/files/clean_df.sh @@ -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" -- 2.34.1