From cdbfc1ac80e88decfb08687ee4983e79330a3c44 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Sat, 16 Dec 2017 14:15:06 -0700 Subject: Replace grep with ack in zsh/todo --- base/zsh/functions.zsh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'base/zsh/functions.zsh') diff --git a/base/zsh/functions.zsh b/base/zsh/functions.zsh index d2905ad..c768d2d 100644 --- a/base/zsh/functions.zsh +++ b/base/zsh/functions.zsh @@ -1,8 +1,5 @@ function 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 + echo "ack TODO $@ | sed -e 's/.*TODO //;s/ \*\/$//;s/ -->//' | LC_ALL=C sort -u" | zsh } function which { -- cgit v1.2.3-70-g09d2