Skip to content

Instantly share code, notes, and snippets.

@dhbradshaw
Created January 31, 2015 01:20
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 dhbradshaw/8df5f70cd886c9abe8ce to your computer and use it in GitHub Desktop.
Save dhbradshaw/8df5f70cd886c9abe8ce to your computer and use it in GitHub Desktop.
Compiling Sphinx and reloading Firefox when you save an rst file
#pip install watchdog
#sudo apt-get install xvkbd
#!/bin/bash
watchmedo shell-command \
--patterns="*.rst" \
--ignore-pattern='_build/*' \
--recursive \
--command='make html && xvkbd -window Firefox -text "\Cr"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment