From: tfheen Date: Mon, 1 May 2006 18:20:56 +0000 (+0000) Subject: Add NotesOfTheDay function X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afd9c686bf98da1fa088ad82a4d0f18298d272f2;p=dotfiles Add NotesOfTheDay function git-svn-id: file:///svn/tfheen/trunk/dotfiles@903 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/environment b/environment index 9d59b92..3c3bb19 100644 --- a/environment +++ b/environment @@ -32,6 +32,19 @@ findcommand() { return 1 } +nod () { + NOD="$HOME/Desktop/NoD.txt" + if ! [ -f "$NOD" ]; then + echo "No ~/Desktop/NoD.txt" + exit 1 + fi + if ! grep -q $(date -I) ${NOD}; then + printf "\n%s:\n\n- Mail, IRC, etc\n" $(date -I) >> ${NOD} + fi + printf "- %s" "$@">> ${NOD} + vim + ${NOD} +} + blog () { pushd $(pwd) if [ ! -d "$HOME/blog" ]; then