Skip to content

Instantly share code, notes, and snippets.

@Fykec
Forked from coryalder/.bash_profile
Created April 28, 2014 11:09
Show Gist options
  • Save Fykec/11368635 to your computer and use it in GitHub Desktop.
Save Fykec/11368635 to your computer and use it in GitHub Desktop.
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