2 ms·
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") e
by jamestomasino 13y 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
- jamestomasino 13y agoWow, HN horrible formatting. Here's the original: https://github.com/jamestomasino/bash-scripts/blob/master/.alias#L49-L62 https://github.com/jamestomasino/bash-scripts/blob/master/.a...