ohmyzsh/custom/xcode.plugin.zsh
Shady ad9bf4659e # 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
2013-11-09 20:47:35 -08:00

18 lines
384 B
Bash

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'