summaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-06-14 23:22:31 +0200
committerAhmed Abdelhalim <[email protected]>2023-06-14 23:22:31 +0200
commitdd2ffd0b60b63cf5606da58d9e188175cf847286 (patch)
treecdaf3dafe26a30947e8664263e88353410fa9afe /.bash_profile
parent84f4e11d36d08b790e6f93764ecd61b5507fe9cc (diff)
Add podman completion script generation
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 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'