From ac5294ae7aaa8668f0a74e32c1786a25adbbb80f Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Sun, 6 Aug 2017 16:12:32 -0600 Subject: Add ZSH config based on changs/slim-zsh --- base/.zsh/functions.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 base/.zsh/functions.zsh (limited to 'base/.zsh/functions.zsh') diff --git a/base/.zsh/functions.zsh b/base/.zsh/functions.zsh new file mode 100644 index 0000000..7c405f0 --- /dev/null +++ b/base/.zsh/functions.zsh @@ -0,0 +1,10 @@ +todo () { + a="" + for i; do a="$a,$i"; done + a="{$(echo "$a" | cut -d',' -f2-)}" + echo "grep -R --exclude-dir=$a TODO | sed -e 's/.*TODO //;s/ \*\/$//;s/ -->//' | LC_ALL=C sort -u" | zsh +} + +which () { + (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@ +} #export -f which -- cgit v1.2.3-70-g09d2