Created
June 30, 2010 11:12
-
-
Save benatkin/458533 to your computer and use it in GitHub Desktop.
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
| ! I hope to expand this later, but for now, I got it working by following | |
| ! the instructions at the URL below, installing both the chrome extension | |
| ! and the gem, saving the refresh-chrome script, and adding this to my ~/.vimrc. | |
| ! | |
| ! http://github.com/kzys/chromerepl | |
| map <leader>r :silent !/Users/ben/bin/refresh-chrome<cr> |
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 | |
| if [[ -s /Users/ben/.rvm/scripts/rvm ]] ; then source /Users/ben/.rvm/scripts/rvm ; fi | |
| rvm use ruby-1.9.1-p378 | |
| chrome-repl -e "chrome.tabs.getSelected(undefined, function(tab) { chrome.tabs.executeScript(tab.id, {\"code\": \"window.location.reload();\"}); });" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment