51b273a66f0b99202e79807c0651e2afd2399d1b

Author
Chris Martin <christopher.martin2@nike.com>
Committer
Chris Martin <christopher.martin2@nike.com>
Date

Message

basic command line xcode functionality

Diff

 1diff --git a/plugins/xcode/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..f137253f32a759a4a2050de16472397c22d213dd
 4--- /dev/null
 5+++ b/plugins/xcode/xcode.plugin.zsh
 6@@ -0,0 +1,18 @@
 7+#xc function courtesy of http://gist.github.com/subdigital/5420709
 8+function xc {
 9+  xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1`
10+  if [[ `echo -n $xcode_proj | wc -m` == 0 ]]
11+  then
12+    echo "No xcworkspace/xcodeproj file found in the current directory."
13+  else
14+    echo "Found $xcode_proj" 
15+    open "$xcode_proj" 
16+  fi
17+}
18+
19+function xcsel {
20+  sudo xcode-select --switch "$*"
21+}
22+
23+alias xcb='xcodebuild'
24+alias xcp='xcode-select --print-path'