first pass at some useful xcode stuff

This commit is contained in:
Chris Martin 2013-11-05 08:37:34 -08:00
commit 05bf6a58a2

13
custom/xcode.plugin.zsh Normal file
View file

@ -0,0 +1,13 @@
function xc {
xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1`
if [[ `echo -n $xcode_proj | wc -m` == 0 ]]
then
echo "No xcworkspace/xcodeproj file found in the current directory."
else
echo "Found $xcode_proj"
open "$xcode_proj"
fi
}
alias xcb='xcodebuild'
alias xcs='xcode-select -p'