taskwarrior/scripts/hooks/on-add.the
Paul Beckingham 8e730f2da3 Hooks
- Updated examples to not rely on bash being in /bin.
2015-02-07 10:25:50 -05:00

12 lines
206 B
Bash

#!/usr/bin/env bash
read new_task
if (echo $new_task | grep -qE '[tT]eh');
then
new_task=$(echo $new_task | sed -r 's/([tT])eh/\1he/g')
echo "Auto-corrected 'teh' --> 'the'"
fi
echo $new_task
exit 0