From: Nicolas Boisselier Date: Wed, 26 Jun 2019 02:51:49 +0000 (+0100) Subject: etc/profile.d/sys.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=26f38658d7dfffc854edd8c7ad64d149d7637b63;p=nb.git etc/profile.d/sys.sh --- 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]}