Hacker News new | ask | show | jobs
by rmchugh 3135 days ago
Might as well auto generate a header for the file...

  function lb() {
    today=$(date '+%Y-%m-%d')
    fp="/home/you/logbook/${today}.md"
    if [ ! -f $fp ]; then
        echo "# ${today}" > $fp
    fi
    vim $fp
  }