[zsh] add bytecount function

This commit is contained in:
Dmytro Meleshko 2019-09-28 17:36:00 +03:00
parent 207bf799cf
commit fcd8679682
1 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,9 @@
count() { echo "$#"; }
mkcd() {
mkdir -p "$@" && cd "${@[-1]}"
}
bytecount() { wc -c "$@" | numfmt --to=iec-i; }
mkcd() { mkdir -p "$@" && cd "${@[-1]}"; }
is_linux() { [[ "$OSTYPE" == linux* ]]; }
is_macos() { [[ "$OSTYPE" == darwin* ]]; }