dotfiles

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

todo (224B)


      1 #!/bin/sh
      2 
      3 TODO="$HOME/todo"
      4 
      5 while sel="$(dmenu -i -l 10 < "$TODO")"; do
      6   if grep -Fqx "$sel" "$TODO"; then
      7     grep -vFx "$sel" "$TODO" > "$TODO.tmp"
      8     mv "$TODO.tmp" "$TODO"
      9   else
     10     echo "$sel" >> "$TODO"
     11   fi
     12 done