Skip to content

Instantly share code, notes, and snippets.

@coryalder
Created May 20, 2013 02:01
Show Gist options
  • Save coryalder/5609996 to your computer and use it in GitHub Desktop.
Save coryalder/5609996 to your computer and use it in GitHub Desktop.
wopen, an Xcode project/workspace opening script
function wopen { # via https://gist.github.com/coryalder/5609996
WORKSPACE="${PWD##*/}.xcworkspace"
PROJECT="${PWD##*/}.xcodeproj"
if [ -a $WORKSPACE ]; then
open $WORKSPACE;
elif [ -a $PROJECT ]; then
open $PROJECT;
else
echo "No workspace or project found.";
fi
} # open Xcode workspace/project of same name as current directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment