Skip to content

Instantly share code, notes, and snippets.

@ype
Created May 16, 2014 23:44
Show Gist options
  • Select an option

  • Save ype/ef5373be4e51f5efb99c to your computer and use it in GitHub Desktop.

Select an option

Save ype/ef5373be4e51f5efb99c to your computer and use it in GitHub Desktop.
Watchdog bashscript for python hovercraft GChrome browser reload on file change
#!/usr/bin/bash
# Script to quickly reload the browser
# while creating a presentation using Hovercraft (impressjs)
#
# Requires:
# pip install hovercraft
# pip install watchdog
# chromix: https://github.com/smblott-github/chromix
watchmedo shell-command \
--patterns="*.rst" \
--recursive \
--command='hovercraft *.rst ./output; chromix reload' \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment