aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S50_functions
diff options
context:
space:
mode:
Diffstat (limited to 'files/.zsh/rc/S50_functions')
-rw-r--r--files/.zsh/rc/S50_functions12
1 files changed, 10 insertions, 2 deletions
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
}