Skip to content

Instantly share code, notes, and snippets.

@durgaswaroop
Created December 31, 2017 11:05
Show Gist options
  • Save durgaswaroop/8ed9a5a55b8629f2180880665866f30e to your computer and use it in GitHub Desktop.
Save durgaswaroop/8ed9a5a55b8629f2180880665866f30e to your computer and use it in GitHub Desktop.
Script file that starts the main process
#!/bin/bash
shopt -s expand_aliases
source ~/.bashrc
[ $# -eq 0 ] && {
echo "Title argument missing"
echo "Usage: blog-it <article-title>";
exit 1;
}
blog $1 &
sleep 1
chrome $PWD/$1.html &
m2h $1.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment