diff options
author | Marvin Borner | 2019-03-05 01:09:01 +0100 |
---|---|---|
committer | Marvin Borner | 2019-03-05 01:09:01 +0100 |
commit | 55457187d18221e76bd12f0fb2cfab65c49b92fb (patch) | |
tree | 8db042d2d80710d54100c2709ad4332153ac848a /.oh-my-zsh/plugins/xcode/_xcselv |
Initial commit
Diffstat (limited to '.oh-my-zsh/plugins/xcode/_xcselv')
-rw-r--r-- | .oh-my-zsh/plugins/xcode/_xcselv | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.oh-my-zsh/plugins/xcode/_xcselv b/.oh-my-zsh/plugins/xcode/_xcselv new file mode 100644 index 0000000..f9861d5 --- /dev/null +++ b/.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 |