Skip to content

Instantly share code, notes, and snippets.

@evadne
Created July 5, 2010 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evadne/464134 to your computer and use it in GitHub Desktop.
Save evadne/464134 to your computer and use it in GitHub Desktop.
Custom user script that opens a new Terminal window where the current file lives.
#!/bin/sh
/usr/bin/osascript <<-EOF
tell application "Terminal"
activate
do script "cd `dirname %%%{PBXFilePath}%%%`"
end tell
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment