Skip to content

Instantly share code, notes, and snippets.

@jackrusher
Created February 27, 2019 11:15
Show Gist options
  • Save jackrusher/ed09f0d3d4e47e65af7790392427bcfa to your computer and use it in GitHub Desktop.
Save jackrusher/ed09f0d3d4e47e65af7790392427bcfa to your computer and use it in GitHub Desktop.
I like to have an emacs keybinding to refresh the frontmost Chrome window.
(global-set-key (kbd "<F12>")
(lambda ()
(shell-command "refresh-chrome")))
#!/usr/bin/osascript
tell application "Chrome" to tell the active tab of its first window
reload
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment