mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 17:23:35 +01:00
12 lines
277 B
Bash
12 lines
277 B
Bash
_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
|