~kris/dots

srice

ref: 178c9a25a484ead715392d50e21d03df486b8b41 srice/.local/bin/todo -rwxr-xr-x 359 bytes
178c9a25 — Kris Yotam conky: sync proper config from moirai (was the greenred variant) 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# todo -- find TODO/FIXME/HACK/XXX comments in codebase
# Usage: todo [path]
#        todo src/

dir="${1:-.}"
rg --no-heading --line-number --color=always \
   '(TODO|FIXME|HACK|XXX|BUG|OPTIMIZE|NOTE):?\s' "$dir" \
   --glob '!node_modules' --glob '!.git' --glob '!vendor' \
   --glob '!build' --glob '!dist' --glob '!target' 2>/dev/null |
   sort