Created
May 20, 2013 02:01
-
-
Save coryalder/5609996 to your computer and use it in GitHub Desktop.
wopen, an Xcode project/workspace opening script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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