Skip to content

Instantly share code, notes, and snippets.

@benatkin
Created June 30, 2010 11:12
Show Gist options
  • Select an option

  • Save benatkin/458533 to your computer and use it in GitHub Desktop.

Select an option

Save benatkin/458533 to your computer and use it in GitHub Desktop.
! 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>
#!/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