Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix vimrc
  • Loading branch information
mhartington committed Jan 27, 2015
1 parent b16c1ae commit e952570
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 170 deletions.
14 changes: 14 additions & 0 deletions journal.sh
@@ -0,0 +1,14 @@
#!/bin/bash

if [[ -z "$JOURNAL_DIR" ]]; then
echo "-- Set environment variable JOURNAL_DIR to where your journal entries are stored."
exit 0;
fi

if [[ -z "$1" ]]; then
DATE=$(date +"%Y-%m-%d")
else
DATE=$1
fi

$EDITOR "$JOURNAL_DIR/$DATE.txt"

0 comments on commit e952570

Please sign in to comment.