]> err.no Git - dotfiles/commitdiff
Add NotesOfTheDay function
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Mon, 1 May 2006 18:20:56 +0000 (18:20 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Mon, 1 May 2006 18:20:56 +0000 (18:20 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@903 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

environment

index 9d59b92742e379ae77e7832a23cf0774d33d4825..3c3bb19ae77c86e7216918decfc7add7dee3ff59 100644 (file)
@@ -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