Skip to content

Instantly share code, notes, and snippets.

@yuchunc
Last active July 19, 2016 00:01
Show Gist options
  • Save yuchunc/3d515412aee10e4b7aedb481e4105438 to your computer and use it in GitHub Desktop.
Save yuchunc/3d515412aee10e4b7aedb481e4105438 to your computer and use it in GitHub Desktop.
Journal Script
year=$(date +%Y)
month=$(date +%m)
date=$(date +%Y-%m-%d)
j_dir="~/Dropbox/daily_journal/$year/$month"
j_file="~/Dropbox/daily_journal/$year/$month/$date"
alias wj="mkdir -p $j_dir && cp ~/Dropbox/daily_journal/template $j_file && vim $j_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment