mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
[plugins/xcode] Fix opening project using a wrong Xcode version (#6829)
This commit is contained in:
parent
626b30b2a3
commit
6ca57e035c
@ -22,8 +22,11 @@ function xc {
|
||||
fi
|
||||
return 1
|
||||
else
|
||||
echo "Found ${xcode_proj[1]}"
|
||||
open "${xcode_proj[1]}"
|
||||
local active_path
|
||||
active_path=$(xcode-select -p)
|
||||
active_path=${active_path%%/Contents/Developer*}
|
||||
echo "Found ${xcode_proj[1]}. Opening with ${active_path}"
|
||||
open -a "$active_path" "${xcode_proj[1]}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user