reload_safari.sh @ 2aaa8a59f2a0

zsh: add an optional zshrc_local hook
author Steve Losh <steve@stevelosh.com>
date Tue, 23 Nov 2010 10:01:30 -0500
parents eef01ecd1235
children (none)
#!/usr/bin/env bash

sleep 1
echo "reloading..."

osascript  &>/dev/null <<EOF
tell application "Safari"
	do JavaScript "window.location.reload()" in front document
end tell
EOF