Skip to content

Instantly share code, notes, and snippets.

@a1ee9b
a1ee9b / chrome.refresh.sh
Last active December 23, 2015 02:19 — forked from nikcub/chrome.refresh.sh
For those using Grunt, you can run this script with the grunt module grunt-exec (https://github.com/jharding/grunt-exec). I put the script in the same folder where the Gruntfile.js is located and used the following configuration: exec: { reload: { command: './chrome.refresh.sh localhost', stdout: true, stderr: true }
#!/bin/bash
# Chrome Refresh
#
# Simple applescript browser reloader for Google Chrome. It will either open a
# new tab with the url passed in as an argument or refresh an existing tab.
#
# Use grunt-exec to include it in your build process
#
# 2-clause BSD license