From a9875dceecb1701e3d5d81d414562ab7a04b8b40 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Sun, 8 Mar 2026 18:11:22 +0100 Subject: [PATCH] Add podman and gh completions, fix bun completion style Add bash completion scripts for podman and gh CLI. Switch bun completion from eval to process substitution for consistency with other completion scripts. Co-Authored-By: Claude Opus 4.6 --- 50-bun-completion | 3 ++- 50-gh-completion | 4 ++++ 50-podman-completion | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 50-gh-completion create mode 100755 50-podman-completion diff --git a/50-bun-completion b/50-bun-completion index d7c7b0f..f834df8 100755 --- a/50-bun-completion +++ b/50-bun-completion @@ -1,3 +1,4 @@ # shellcheck shell=bash +# shellcheck disable=SC1090 # Enable bash completion for bun (JavaScript runtime & package manager) -command -v bun &>/dev/null && eval "$(bun completions)" +command -v bun &>/dev/null && . <(bun completions) diff --git a/50-gh-completion b/50-gh-completion new file mode 100755 index 0000000..a703414 --- /dev/null +++ b/50-gh-completion @@ -0,0 +1,4 @@ +# shellcheck shell=bash +# shellcheck disable=SC1090 +# Tab completion for gh, the GitHub CLI +command -v gh &>/dev/null && . <(gh completion -s bash) diff --git a/50-podman-completion b/50-podman-completion new file mode 100755 index 0000000..8022925 --- /dev/null +++ b/50-podman-completion @@ -0,0 +1,4 @@ +# shellcheck shell=bash +# shellcheck disable=SC1090 +# Tab completion for Podman, a rootless container engine +command -v podman &>/dev/null && . <(podman completion bash)