Skip to main content

A simple bash alias to find nikola drafts

I use the static site generator Nikola to summon this blog into existence. I'm a slow writer and I often forget which posts I'm working on. Nikola has builtin functionally for dealing with drafts so by adding the following alias

alias drafts='grep -rnw ~/path/to/posts -e draft'

to my ~/.bash_aliases I get a list of unfinished posts. This is trivial but convenient, unfortunately this post will now give a false positive.