Useful shell alias – Display all lines containing TODO, FIX or XXX

As I often use comments to point me to particular parts of the code, and like to use common [TODO] [FIX] [XXX] tags, I’ve figured out this handy alias that will list all the lines within the current directory and below, along with the line numbers.

alias whattodo='grep -rn "TODO\|FIX\|XXX" . \
                           --exclude=".git*" --exclude-dir={.git} --color'

Place that in your ~/.bashrc or ~/.zshrc or whatever config file your shell is using. By default it ignores all git related directories (by exclude options).
Just type whattodo in your work folder to use.