dotfiles/dot_oh-my-zsh/plugins/jfrog/jfrog.plugin.zsh

12 lines
277 B
Bash
Raw Normal View History

2023-01-30 14:28:59 +01: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
compdef _jfrog jf