diff options
author | zghember <zghpku@gmail.com> | 2014-12-15 00:23:34 +0800 |
---|---|---|
committer | zghember <zghpku@gmail.com> | 2014-12-15 00:23:34 +0800 |
commit | 6fd0b73e9aba568640005798f737cd73ad0bfdf4 (patch) | |
tree | 22f3654e0c00ffd1cb9c3c05ca5d8bffa190cc1f /plugins/xcode/xcode.plugin.zsh | |
parent | 6f70d288cc4625142413227109bf1eeac7e2a180 (diff) | |
parent | 141c2e593401f245a9f9bb0799ada8bf14b677d7 (diff) | |
download | zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.tar.gz zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.tar.bz2 zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.zip |
Merge commit '141c2e593401f245a9f9bb0799ada8bf14b677d7'
Diffstat (limited to 'plugins/xcode/xcode.plugin.zsh')
-rw-r--r-- | plugins/xcode/xcode.plugin.zsh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/xcode/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh index e59bee8c7..b7b75cf93 100644 --- a/plugins/xcode/xcode.plugin.zsh +++ b/plugins/xcode/xcode.plugin.zsh @@ -16,4 +16,9 @@ function xcsel { alias xcb='xcodebuild' alias xcp='xcode-select --print-path' -alias simulator='open $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ 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 |