dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

Note (317B) [raw]


      1 #!/bin/sh
      2 name=${1:-scratch/$(/usr/bin/date +%F).txt}
      3 
      4 file=$HOME/notes/$name
      5 
      6 if [ -e $file ]; then
      7 	# Just open the existing file!
      8 	plumb -d edit $file
      9 else
     10 	# Open in a buffer but don't save to the file yet -- will likely rename!
     11 	(date; echo) | plumb -i -d edit -a "action=showdata filename=$HOME/notes/$name"
     12 fi