diff options
-rw-r--r-- | .aliases | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -75,7 +75,13 @@ alias c="tr -d '\n' | pbcopy" alias cleanup="find . -type f -name '*.DS_Store' -ls -delete" # File size -alias fs="stat -c \"%s bytes\"" +if stat -c '' . > /dev/null 2>&1; then + # GNU `stat` + alias fs="stat -c \"%s bytes\"" +else + # OS X `stat` + alias fs="stat -f \"%z bytes\"" +fi # ROT13-encode text. Works for decoding, too! ;) alias rot13='tr a-zA-Z n-za-mN-ZA-M' |