Skip to content

Instantly share code, notes, and snippets.

@incanus
Created October 21, 2011 21:13
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 incanus/1304999 to your computer and use it in GitHub Desktop.
Save incanus/1304999 to your computer and use it in GitHub Desktop.
Bash script to kill old Jekyll processes, start a new one in the current directly, and open the browser to it.
#!/bin/sh
ps ax | grep jekyll | grep -v grep | awk '{ print $1 }' | xargs kill
jekyll &
sleep 1
open http://localhost:4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment