Last active
June 12, 2016 22:39
-
-
Save jonathan-beebe/fca398feeab8eaa6c15c to your computer and use it in GitHub Desktop.
Helpful bash aliases for Xcode projects
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
alias xw="open *.xcworkspace" | |
alias xp="open *.xcodeproj" | |
function xcode { | |
# If the pattern matches a workspcace file, try to open it. | |
if stat -t -- *.xcworkspace >/dev/null 2>&1; then | |
xw | |
# Otherwise fall back to opening a project file. | |
else | |
xp | |
fi | |
} | |
alias xc="xcode" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment