#/bin/bash
replace='\033[9m[-] $2\033[0m'
dir='~/todo.txt/'
commands=('add' 'done' 'remove' 'init' 'help')
if [$1 = commands[0][; then
echo '[-] $2' >> dir && cat dir
elif [$1 = commands[1]]; then
sed -i 's/[-] $2/$replace/' dir && cat dir
elif [$1 = commands[2]]; then
sed '/[-] $2/d' dir
elif ["$1" = commands[3]]; then
touch dir
else
echo "Bad arguments. Type todo help to check arguments list."
fi