#!/bin/sh
#
# Open a new terminal in the cwd
#

CWD=`pwd`
osascript<<END
set thePath to "$CWD"
set myPath to (POSIX file thePath as alias)
try
tell application "Terminal"
activate
do script with command "cd \"" & thePath & "\""
end tell
end try
END