Created
December 31, 2017 11:05
-
-
Save durgaswaroop/8ed9a5a55b8629f2180880665866f30e to your computer and use it in GitHub Desktop.
Script file that starts the main process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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