diff options
author | Robby Russell <robby@planetargon.com> | 2015-09-19 09:01:16 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-09-19 09:01:16 -0700 |
commit | 6eb6017b3c08003e5885d0f8740e84c5417bc492 (patch) | |
tree | 6c7cbffb34741c8f661f31780f1c5a072bb9dc8d /plugins/xcode/_xcselv | |
parent | 1e49dfcd15ce83baa423f0d1a52e0cdf19ab80fd (diff) | |
parent | 6642a99fac11dd4e10869566f1d38761f1e8746c (diff) | |
download | zsh-6eb6017b3c08003e5885d0f8740e84c5417bc492.tar.gz zsh-6eb6017b3c08003e5885d0f8740e84c5417bc492.tar.bz2 zsh-6eb6017b3c08003e5885d0f8740e84c5417bc492.zip |
Merge pull request #4235 from mcornella/fix-xcode-plugin
Fix xcode plugin
Diffstat (limited to 'plugins/xcode/_xcselv')
-rw-r--r-- | plugins/xcode/_xcselv | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/xcode/_xcselv b/plugins/xcode/_xcselv new file mode 100644 index 000000000..f9861d54b --- /dev/null +++ b/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 |