Skip to content

Instantly share code, notes, and snippets.

View pastparty's full-sized avatar
🦆
nak nak

C. S. pastparty

🦆
nak nak
View GitHub Profile
@pastparty
pastparty / .zshrc
Created February 18, 2019 15:19
DID
# What did i do today?
# from https://theptrk.com/2018/07/11/did-txt-file/
export MDV_THEME=729.8953
export DID_PATH=~/.did
function did(){
export LC_ALL=C
mkdir -p ${DID_PATH}
if [ ! -f ${DID_PATH}/$(date +%Y-%V).md ]; then
echo "# Week $(date +"%V (%B %Y)") \n\n## $(date +"%A %Y-%m-%d")" > ${DID_PATH}/$(date +%Y-%V).md