Skip to content

Instantly share code, notes, and snippets.

@jboehler
Last active December 22, 2021 03:06
Show Gist options
  • Save jboehler/cf84943bb6640d5594b6241f5843bd56 to your computer and use it in GitHub Desktop.
Save jboehler/cf84943bb6640d5594b6241f5843bd56 to your computer and use it in GitHub Desktop.

Xcode Behavior Script - open Terminal

Terminal

#!/bin/sh

if [ -n "$XcodeProjectPath" ]; then
  open -a Terminal "$XcodeProjectPath"/..
else
  open -a Terminal "$XcodeWorkspacePath"/..
fi

iTerm

#!/bin/sh

if [ -n "$XcodeProjectPath" ]; then
  open -a iTerm "$XcodeProjectPath"/..
else
  open -a iTerm "$XcodeWorkspacePath"/..
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment