From af120ab348f2e1a5a39dec035ed9dcf84189a64e Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Mon, 3 Oct 2022 21:42:20 +0530 Subject: dotfiles --- zsh/oh-my-zsh/plugins/xcode/_xcselv | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 zsh/oh-my-zsh/plugins/xcode/_xcselv (limited to 'zsh/oh-my-zsh/plugins/xcode/_xcselv') diff --git a/zsh/oh-my-zsh/plugins/xcode/_xcselv b/zsh/oh-my-zsh/plugins/xcode/_xcselv new file mode 100644 index 0000000..f9861d5 --- /dev/null +++ b/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.2.3-59-g8ed1b