From dd2ffd0b60b63cf5606da58d9e188175cf847286 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 14 Jun 2023 23:22:31 +0200 Subject: Add podman completion script generation --- .bash_profile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 139ec6a..e3e2058 100644 --- a/.bash_profile +++ b/.bash_profile @@ -115,6 +115,13 @@ if command -v helm 1>/dev/null 2>&1; then fi fi +# ==== Generate podman completion script when it's not there +if command -v podman 1>/dev/null 2>&1; then + if [ ! -f $(brew --prefix)/etc/bash_completion.d/podman ]; then + podman completion bash > $(brew --prefix)/etc/bash_completion.d/podman + fi +fi + # ==== k8s/ktx/kns completeion if command -v kubectl 1>/dev/null 2>&1; then alias k='kubectl' -- cgit v1.2.3