mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
improve style, allow space in paths
changed Parameter expansion to use the convention already in this pluging. Also surrounded application path in quotes, just incase.
This commit is contained in:
parent
fbf601eb6d
commit
447db36d6e
1 changed files with 3 additions and 2 deletions
|
|
@ -14,8 +14,9 @@ function xc {
|
|||
return 1
|
||||
else
|
||||
echo "Found ${xcode_proj[1]}"
|
||||
XCODEPATH=`xcode-select -p`
|
||||
open -a ${XCODEPATH%/*/*} "${xcode_proj[1]}"
|
||||
active_path=$(xcode-select -p)
|
||||
active_path=${active_path%%/Contents/Developer*}
|
||||
open -a "${active_path}" "${xcode_proj[1]}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue