mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Make the simulator alias work with older Xcode versions as well.
This commit is contained in:
parent
d794a502f6
commit
071de5fb39
1 changed files with 6 additions and 1 deletions
|
|
@ -16,4 +16,9 @@ function xcsel {
|
||||||
|
|
||||||
alias xcb='xcodebuild'
|
alias xcb='xcodebuild'
|
||||||
alias xcp='xcode-select --print-path'
|
alias xcp='xcode-select --print-path'
|
||||||
|
|
||||||
|
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'
|
alias simulator='open $(xcode-select -p)/Applications/iOS\ Simulator.app'
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue