mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
Make the simulator alias work with older Xcode versions as well.
This commit is contained in:
1 parent
d794a502f6
commit
071de5fb39
1 file changed
+6
-1
@@ -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
|
||||
Reference in new issue
Block a user