Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The more senior your job title, the more you need to keep a journal (2017). Parent comment
Try this instead. It works for me. Let me know.
Copy it to your ~/.bash_aliases. And source it.
alias jim=' function _jim() { journaldir="$HOME/journal" year=`date "+%Y"` today=`date "+%Y-%m-%d"` yearpath="$journaldir/$year" [[ -d "$yearpath" ]] || mkdir -p $yearpath jfile="log_$today.md" jfilepath="$journaldir/$year/$jfile" header="# Log: $today\n\n# Highlights:\n\n" [[ -f "$jfilepath" ]] && echo "Opening log: $jfilepath" || { echo "Creating new log: $jfilepath" ; echo -e "$header" > $jfilepath ; } vi "$jfilepath" }; _jim'
There are no comments on this comment yet.
Try this instead. It works for me. Let me know.
Copy it to your ~/.bash_aliases. And source it.