Skip to content

Commit

Permalink
use ls instead of find to avoid incompatibility with gnu find
Browse files Browse the repository at this point in the history
  • Loading branch information
yachi authored and ncanceill committed Jun 2, 2014
1 parent b1c97bc commit 3cdfdad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/xcode/xcode.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#xc function courtesy of http:https://gist.github.com/subdigital/5420709
function xc {
xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1`
xcode_proj=`ls | grep "\.xc" | sort -r | head -1`
if [[ `echo -n $xcode_proj | wc -m` == 0 ]]
then
echo "No xcworkspace/xcodeproj file found in the current directory."
Expand Down

0 comments on commit 3cdfdad

Please sign in to comment.