Skip to content

Commit

Permalink
Merge pull request ohmyzsh#2255 from shadyproject/plugin/xcode-support
Browse files Browse the repository at this point in the history
basic command line xcode functionality
  • Loading branch information
robbyrussell committed Dec 3, 2013
2 parents 4be8c51 + 51b273a commit b422b07
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions plugins/xcode/xcode.plugin.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#xc function courtesy of http://gist.github.com/subdigital/5420709
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'

0 comments on commit b422b07

Please sign in to comment.