Created
October 26, 2012 17:53
-
-
Save blowery/3960267 to your computer and use it in GitHub Desktop.
Reload the active tab in Chrome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| osascript ~/dotfiles/bin/reload-chrome.osa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "Google Chrome" | |
| tell the active tab of its first window | |
| reload | |
| end tell | |
| end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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