diff options
author | Adam Hovorka <[email protected]> | 2017-12-16 14:15:06 -0700 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2017-12-16 14:15:06 -0700 |
commit | cdbfc1ac80e88decfb08687ee4983e79330a3c44 (patch) | |
tree | 3db17d62b58100aa6a4c28ec80a8b22c66ceaec9 /base | |
parent | 6988fb701d245d11d84bfe534f3fdf5037a57e68 (diff) |
Replace grep with ack in zsh/todo
Diffstat (limited to 'base')
-rw-r--r-- | base/zsh/functions.zsh | 5 |
1 files changed, 1 insertions, 4 deletions
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 { |