mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Add JFrog CLI plugin (#8250)
This commit is contained in:
parent
7290a08bf6
commit
b72607bc8e
2 changed files with 21 additions and 0 deletions
10
plugins/jfrog/jfrog.plugin.zsh
Normal file
10
plugins/jfrog/jfrog.plugin.zsh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
_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
|
||||
Loading…
Add table
Add a link
Reference in a new issue