Skip to content

Instantly share code, notes, and snippets.

@wilsonmar
Created April 17, 2016 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilsonmar/e2a146402ecd964100c9020127c605fd to your computer and use it in GitHub Desktop.
Save wilsonmar/e2a146402ecd964100c9020127c605fd to your computer and use it in GitHub Desktop.
trymm.sh - Try minimal-mistakes by populating with unit test data
#!/bin/bash
# trymm.sh in ~/gits folder
# by WilsonMar@gmail.com
# Obtain theme files and overlay data from original by Michael Rose:
# Run this from any folder:
# Tested on Mac OSX El Capitan.
#
set -x #echo on
cd ~/gits/jekyll
rm -rf minimal-mistakes
# clone all history and branches:
git clone http://github.com/mmistakes/minimal-mistakes.git
#curl -L -o minimal-mistakes-master.zip http://github.com/mmistakes/minimal-mistakes/zipball/master/
#unzip minimal-mistakes-master.zip -d /minimal-mistakes
#rm minimal-mistakes-master.zip
# Error appears for unzip, so I use clone instead.
rm -rf jekyll-theme-unit-test
git clone http://github.com/mmistakes/jekyll-theme-unit-test.git
#curl -L -o jekyll-theme-unit-test-master.zip http://github.com/mmistakes/jekyll-theme-unit-test/zipball/master/
#unzip jekyll-theme-unit-test-master.zip -d /jekyll-theme-unit-test2
#rm jekyll-theme-unit-test-master.zip
cp -Rf jekyll-theme-unit-test/* minimal-mistakes/
cd minimal-mistakes
bundle
python -mwebbrowser http://localhost:4000
bundle exec jekyll serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment