summaryrefslogtreecommitdiff
path: root/home/.oh-my-zsh/plugins/xcode/_xcselv
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-07-13 06:42:05 +0200
committernavewindre <boneyaard@gmail.com>2025-07-13 06:42:05 +0200
commit02f14a9cb152561a5e44062aac79f3b700403b40 (patch)
tree2db8ebda3b7f6f8777783aeb5c60018e6e1359d8 /home/.oh-my-zsh/plugins/xcode/_xcselv
parentcbbdeb2f6b40a102a829f0c47cff052937231f00 (diff)
omz
Diffstat (limited to 'home/.oh-my-zsh/plugins/xcode/_xcselv')
-rw-r--r--home/.oh-my-zsh/plugins/xcode/_xcselv19
1 files changed, 19 insertions, 0 deletions
diff --git a/home/.oh-my-zsh/plugins/xcode/_xcselv b/home/.oh-my-zsh/plugins/xcode/_xcselv
new file mode 100644
index 0000000..f9861d5
--- /dev/null
+++ b/home/.oh-my-zsh/plugins/xcode/_xcselv
@@ -0,0 +1,19 @@
+#compdef xcselv
+#autoload
+
+function _xcselv_compl_list_versions() {
+ _omz_xcode_list_versions short
+}
+
+_arguments \
+ '(-l -L -p)-h[prints a help message]' \
+ '(-L -p -h)-l[lists installed Xcode versions]' \
+ '(-l -p -h)-L[lists installed Xcode versions (long form)]' \
+ '(-h -l -L)-p[prints active Xcode version]' \
+ && ret=0
+
+local _xcode_versions
+_xcode_versions=($(_xcselv_compl_list_versions))
+_describe -t _xcode_versions 'version' _xcode_versions
+
+return 1