diff --git a/run-osx.sh b/run-osx.sh new file mode 100755 index 0000000000..2af9a51ec0 --- /dev/null +++ b/run-osx.sh @@ -0,0 +1,52 @@ +#!/bin/sh + +[ `uname -s` != "Darwin" ] && return + +function tab () { + local cmd="" + local cdto="$PWD" + local args="$@" + + if [ -d "$1" ]; then + cdto=`cd "$1"; pwd` + args="${@:2}" + fi + + if [ -n "$args" ]; then + cmd="; $args" + fi + + osascript &>/dev/null <