From fbf601eb6d86f143609a11c6006c159cb6630d9b Mon Sep 17 00:00:00 2001 From: John Regner Date: Sun, 31 Jan 2016 10:33:48 -0800 Subject: [PATCH] Use value of xcode-select path instead of just using the finder default --- plugins/xcode/xcode.plugin.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/xcode/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh index 0a2fa083..9f93060a 100644 --- a/plugins/xcode/xcode.plugin.zsh +++ b/plugins/xcode/xcode.plugin.zsh @@ -14,7 +14,8 @@ function xc { return 1 else echo "Found ${xcode_proj[1]}" - open "${xcode_proj[1]}" + XCODEPATH=`xcode-select -p` + open -a ${XCODEPATH%/*/*} "${xcode_proj[1]}" fi }