From 414e49a1d394d44b2972f30370849573b6ea093b Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Sun, 28 Apr 2024 21:48:54 +0500 Subject: [zsh] Updates --- files/.zsh/rc/S50_functions | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'files/.zsh/rc/S50_functions') diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index b9f2a08..fe0f3b7 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -3,6 +3,14 @@ mcd() { } compdef _directories mcd +wcc() { + wc -c "$@" | numfmt --to=si +} + +wcl() { + wc -l "$@" | numfmt --grouping +} + ppgrep() { pgrep "$@" | xargs --no-run-if-empty ps fp } @@ -33,9 +41,9 @@ EOM open() { if [ $# = 0 ] ; then - xdg-open . + xdg-open . >/dev/null 2>&1 else - xdg-open $* + xdg-open "$@" >/dev/null 2>&1 fi } -- cgit v1.2.3