dotfiles

configurations and scripts
git clone https://riazj.com/git/dotfiles
Log | Files | Refs | LICENSE

td (210B)


      1 #!/bin/sh -e
      2 
      3 TODO="$HOME/todo"
      4 TEMP="/tmp/todo.tmp"
      5 
      6 [ $# -eq 0 ] && { nl -nln -ba "$TODO"; exit; }
      7 [ "$1" != "rm" ] && { echo "$*" >> "$TODO"; exit; }
      8 shift; sed "$*d" "$TODO" > "$TEMP" && mv "$TEMP" "$TODO"