|
|
|
|
|
by jamestomasino
4518 days ago
|
|
My personal solution is along the same lines, but much less global and annoying. This is in my .bash_profile: # todo
function todo {
case "$1" in
"-a")
echo "$2" >> $HOME/.todo
;;
"-d")
sed -i "" -e "$2d" $HOME/.todo
;;
esac
if [ -f "$HOME/.todo" ] ; then
cat $HOME/.todo | awk '{ print NR, "-", $0 }'
fi
}
todo |
|