# This is a combination of 3 commits.

# The first commit's message is:
some useful xcode command line stuff

# This is the 2nd commit message:

fix the param to print info

# This is the 3rd commit message:

added function to swith path, renamed print
This commit is contained in:
Shady 2013-11-07 20:26:38 -08:00
commit ad9bf4659e

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

@ -0,0 +1,18 @@
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
}
function xcsel {
sudo xcode-select --switch "$*"
}
alias xcb='xcodebuild'
alias xcp='xcode-select --print-path'