mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] add bytecount function
This commit is contained in:
parent
207bf799cf
commit
fcd8679682
1 changed files with 3 additions and 3 deletions
|
@ -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* ]]; }
|
||||
|
|
Loading…
Reference in a new issue