How to add posts to this here memex
First off, there's a new alias which will make it easier to add new posts:
bash
alias ma="${tool_dir_omitted}/bashblog/bb.sh post"
Now I can just type 'ma' whenever I have something useful to add, and boom, it gets added. Not sure if I should have a running daily draft? I'm not going to overthink this too early. Early optimization bites me in the butt way too often.
Also, I threw together a simple Makefile for publishing:
all: push_to_git
publish:make
@if git diff-index --quiet HEAD; then
rsync -rav --exclude-from=never_rsync_these_files.txt ./* talkingnerdy:$$(remote_dir_omitted);
else
git status;
echo 'You have uncommited changes. Take care of git first, then try again:';
false;
fi
push_to_git: publish
git push -u origin master
Something to note, the markdown parser I'm using isn't doing a good job of formatting code blocks. I may replace this eventually.