<h4 id="using-markdown-and-git-to-store-your-todo-list-and-daily-journal">Using Markdown and git to store your todo list and daily journal</h4>
<h5 id="why-markdown">Why markdown</h5>
<ul>
<li>No distractions</li>
<li>Simple syntax</li>
<li>Plain text, Human readable.</li>
<li>Inline HTML</li>
<li>Easy conversion to other formats</li>
</ul>
<h5 id="why-git">Why git</h5>
<ul>
<li>Any SCM probably OK</li>
<li>Github and Gitlab render markdown.</li>
</ul>
<h5 id="the-todo-page">The todo page</h5>
<pre><code>    # TODO

    ### Can do now
    * Bullet 1
    * Bullet 2

    ### Near term
    1. Numbered 1
    1. Numbered 2

    ### Long term</code></pre>
<h5 id="the-journal-script">The journal script</h5>
<pre><code>    DAILYFILE=&quot;/Users/norrist/Projects/todo/daily/$(/bin/date +%F).md&quot;
    DAILYPATH=&quot;/Users/norrist/Projects/todo/daily/&quot;
    LOCKFILE=&quot;/Users/norrist/Projects/todo/daily/LOCK&quot;
    TODOFILE=&quot;/Users/norrist/Projects/todo/todo.md&quot;

    if [ -f $LOCKFILE ]
        then
            echo &quot;$LOCKFILE PRESENT - ABORTING&quot;
            read -n1 -p &quot;Remove and Continue? [y,n]&quot; doit
                case $doit in
                    y|Y) echo &quot;Continuing with $LOCKFILE PRESENT&quot; ;;
                    *) exit 1 ;;
                esac


        else
            echo &quot;NO LOKCFILE&quot;
            touch $LOCKFILE

    fi


    if [ -f $DAILYFILE ]
        then
            echo &quot;$DAILYFILE exists&quot;
        else
            echo  &gt;&gt; $DAILYFILE
            echo  &quot;-----&quot;&gt;&gt; $DAILYFILE
            echo &quot;# $(/bin/date +%F)&quot; &gt;&gt; $DAILYFILE
            echo  &gt;&gt; $DAILYFILE
            echo &quot;### Projects&quot; &gt;&gt; $DAILYFILE
            echo  &gt;&gt; $DAILYFILE
            echo &quot;### Tickets&quot; &gt;&gt; $DAILYFILE
            echo  &gt;&gt; $DAILYFILE
            echo &quot;### Walkups&quot; &gt;&gt; $DAILYFILE
    fi

    /usr/local/bin/edit -w --new-window $DAILYFILE
    /opt/local/bin/aspell -c $DAILYFILE
    /opt/local/bin/aspell -c $TODOFILE

    rm $LOCKFILE
    rm $DAILYPATH/README.md

    cat $TODOFILE &gt;&gt; $DAILYPATH/README.md

    for f in $(ls  -r $DAILYPATH/2*md)
     do cat $f &gt;&gt; $DAILYPATH/README.md
     echo &gt;&gt;$DAILYPATH/README.md
     done

    cd /Users/norrist/Projects/todo; /usr/bin/git add . &amp;&amp; /usr/bin/git commit -m &quot;$(date)&quot; &amp;&amp; /usr/bin/git push origin master</code></pre>
<h4 id="daily-file-template">Daily file template</h4>
<pre><code>    # 2016-08-02

    -----

    ### Projects

    ### Tickets

    ### Walkups</code></pre>
<h5 id="aspell-is-awesome">aspell is awesome</h5>
