Skip to content

Instantly share code, notes, and snippets.

@blowery
Created October 26, 2012 17:53
Show Gist options
  • Select an option

  • Save blowery/3960267 to your computer and use it in GitHub Desktop.

Select an option

Save blowery/3960267 to your computer and use it in GitHub Desktop.
Reload the active tab in Chrome
#!/bin/bash
osascript ~/dotfiles/bin/reload-chrome.osa
tell application "Google Chrome"
tell the active tab of its first window
reload
end tell
end tell
# npm install -g watchman
watchman -i -w $where_js_lives reload-chrome &
# assuming chrome is default browser
open http://localhost/your/app/
# go hack. chrome will auto reload when changes happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment