From f643fbf72cba06dd61079319f6dba6280afe050b Mon Sep 17 00:00:00 2001 From: Morgan Williams <2504532+mrgnw@users.noreply.github.com> Date: Fri, 25 Sep 2026 23:22:58 -0400 Subject: [PATCH] xcode-sims: pick platforms with fzf when none given Co-Authored-By: Claude Opus 5.5 --- readme.md | 3 ++- xcode-sims | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index a836487..e7f1473 100644 --- a/readme.md +++ b/readme.md @@ -92,6 +92,7 @@ Delete Xcode simulator runtimes and devices when not in use, re-download when ne ```sh scripts/xcode-sims off -scripts/xcode-sims on iOS visionOS +scripts/xcode-sims on +scripts/xcode-sims on visionOS scripts/xcode-sims status ``` diff --git a/xcode-sims b/xcode-sims index 16df389..4131782 100755 --- a/xcode-sims +++ b/xcode-sims @@ -8,7 +8,10 @@ case "${1:-}" in ;; on) shift - [ $# -eq 0 ] && set -- iOS + if [ $# -eq 0 ]; then + set -- $(printf '%s\n' iOS visionOS watchOS tvOS | fzf --multi --prompt 'download (tab to pick several): ') + fi + [ $# -gt 0 ] || exit 1 for platform in "$@"; do xcodebuild -downloadPlatform "$platform" done -- knotmirror 0.0.1