diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-09-05 18:45:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-09-05 18:45:55 -0300 |
commit | 3fcde8df5a7315a22922879e671cf0888887327b (patch) | |
tree | 252f35e8b50c9f5effe47db0b83c232c1de77ab7 /todo | |
parent | eb6e23577ebd2a7de151fc46bb4c8e9283a6199e (diff) | |
download | scripts-3fcde8df5a7315a22922879e671cf0888887327b.tar.gz scripts-3fcde8df5a7315a22922879e671cf0888887327b.tar.bz2 |
Enhance todo
Diffstat (limited to 'todo')
-rwxr-xr-x | todo | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -51,7 +51,11 @@ elif [ "$OPTION" == "count" ]; then todo_find | grep -v $NAME | wc -l elif [ "$OPTION" == "show" ]; then if [ ! -z "$2" ] && [ -e "$2" ]; then - grep "TODO" $2 | sed -e 's/^ *//' + # Check TODO inside files + grep -i "todo" $2 | sed -e 's/^ *//' + + # Check also for FIXMEs + fixmes $2 fi elif [ "$OPTION" == "help" ]; then echo "usage: $BASENAME [list|count]" |