From e67ba0b3134f5decd3fe49dbbd2a423aa9e23689 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 31 May 2022 13:51:21 +0200 Subject: Add vela auto completion support when vela is installed --- .bash_profile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.bash_profile') 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 -- cgit v1.2.3