From 0e6b837e773f0d956b6807e0fb01a7dcd1a340df Mon Sep 17 00:00:00 2001 From: Dominik Porada Date: Fri, 31 Aug 2012 04:33:33 +0300 Subject: .functions: Tweak `fs` --- .functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.functions') diff --git a/.functions b/.functions index 5cea08b..93356f9 100644 --- a/.functions +++ b/.functions @@ -5,10 +5,10 @@ function mkd() { # Determine size of a file or total size of a directory function fs() { - if du -shb /dev/null > /dev/null 2>&1; then + if du -b /dev/null > /dev/null 2>&1; then local arg=-sbh else - local arg=-skh + local arg=-sh fi if [[ -n "$@" ]]; then du $arg -- "$@" -- cgit v1.2.3