Merge 0d60bdd1dd
into 4fec0a46e7
This commit is contained in:
commit
429357d824
|
@ -23,7 +23,14 @@ function xc {
|
|||
return 1
|
||||
else
|
||||
echo "Found ${xcode_proj[1]}"
|
||||
open "${xcode_proj[1]}"
|
||||
active_path=$(xcode-select -p)
|
||||
if [[ ${active_path} =~ "Xcode" ]]; then
|
||||
active_path=${active_path%%/Contents/Developer*}
|
||||
echo "Opening with ${active_path}"
|
||||
open -a "${active_path}" "${xcode_proj[1]}"
|
||||
else # No Xcode installed
|
||||
open "${xcode_proj[1]}" # Fall back to using Finder suggested application
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue