summaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-05-05 15:58:56 +0200
committerAhmed Abdelhalim <[email protected]>2023-05-05 15:58:56 +0200
commit8cf7ac48170f22db1187e8e2aeb051c369b1eb0e (patch)
tree208ff50fa01d1193a21ba034eaf8a09d80f70981 /.bash_profile
parentf2dcf499bd4bae9404af92d2df65173e6f4b7e22 (diff)
Add jf completion section to bash_profile
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile13
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