From 26f38658d7dfffc854edd8c7ad64d149d7637b63 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 26 Jun 2019 03:51:49 +0100 Subject: [PATCH] etc/profile.d/sys.sh --- etc/profile.d/sys.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index 699eb26c..73028048 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -73,6 +73,8 @@ sys_arch() { } sys_df() { + shell_help "Usage: sys_df [--header]. Print disk mounted status" "$@" && return 1 + [ "$1" = "--header" ] && echo -e "Dir\tPcent\tUsed\tFree" df -h | tail -n +2 | while read -r -a i; do mount=${i[0]} used=${i[2]} -- 2.47.3