1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 14:24:16 +08:00
ohmyzsh/plugins/jfrog/jfrog.plugin.zsh

10 lines
258 B
Bash
Raw Normal View History

2020-02-25 19:00:25 +08:00
_jfrog() {
local -a opts
opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} --generate-bash-completion)}")
_describe 'values' opts
if [[ $compstate[nmatches] -eq 0 && $words[$CURRENT] != -* ]]; then
_files
fi
}
compdef _jfrog jfrog