diff options
| -rw-r--r-- | .bash_profile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile index c32671a..02fa6ba 100644 --- a/.bash_profile +++ b/.bash_profile @@ -134,3 +134,16 @@ if command -v java 1>/dev/null 2>&1; then export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH" export PATH="/opt/homebrew/opt/gradle@6/bin:$PATH" fi + +# ==== JFrog CLI config +if command -v jf 1>/dev/null 2>&1; then + _jfrog() { + local cur opts base + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion ) + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + } + complete -F _jfrog -o default jfrog + complete -F _jfrog -o default jf +fi |
