Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
071de5fb
Commit
071de5fb
authored
Oct 27, 2014
by
Neal
Browse files
Make the simulator alias work with older Xcode versions as well.
parent
d794a502
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/xcode/xcode.plugin.zsh
View file @
071de5fb
...
...
@@ -16,4 +16,9 @@ function xcsel {
alias
xcb
=
'xcodebuild'
alias
xcp
=
'xcode-select --print-path'
alias
simulator
=
'open $(xcode-select -p)/Applications/iOS\ Simulator.app'
if
[[
-d
$(
xcode-select
-p
)
/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone
\
Simulator.app
]]
;
then
alias
simulator
=
'open $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'
else
alias
simulator
=
'open $(xcode-select -p)/Applications/iOS\ Simulator.app'
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment