From 1eb69e9a795cc19450178c07d8d382622bc7ad70 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Fri, 16 Oct 2026 15:19:13 -0300 Subject: first commit --- .config/zsh/oh-my-zsh/plugins/xcode/_xcselv | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .config/zsh/oh-my-zsh/plugins/xcode/_xcselv (limited to '.config/zsh/oh-my-zsh/plugins/xcode/_xcselv') diff --git a/.config/zsh/oh-my-zsh/plugins/xcode/_xcselv b/.config/zsh/oh-my-zsh/plugins/xcode/_xcselv new file mode 100644 index 0000000..f9861d5 --- /dev/null +++ b/.config/zsh/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 -- cgit v1.3