summaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2022-05-31 13:51:21 +0200
committerAhmed Abdelhalim <[email protected]>2022-05-31 13:51:21 +0200
commite67ba0b3134f5decd3fe49dbbd2a423aa9e23689 (patch)
tree792f19634f4b117b3de0c785855cbe9ad8e82e77 /.bash_profile
parent9d37b9b1fd73427b316d7034e8f7cdd296f6e1c6 (diff)
Add vela auto completion support when vela is installed
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile7
1 files changed, 7 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
index 0735327..7f24293 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -109,6 +109,13 @@ if command -v helm 1>/dev/null 2>&1; then
fi
fi
+# ==== Generate vela autocomplete stuff when it's not there
+if command -v vela 1>/dev/null 2>&1; then
+ if [ ! -f $(brew --prefix)/etc/bash_completion.d/vela ]; then
+ vela completion bash > $(brew --prefix)/etc/bash_completion.d/vela
+ fi
+fi
+
# ==== load all bash completions
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion