summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-05-02 15:01:27 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-03 19:43:43 +0000
commit5ae940a57427ffe0588d83d3c2a4a1deb7a37208 (patch)
tree7e652473981049b2eeea16c5e85e70b28eb02d9b /completions/bash
parent9fc85522fb4168d47956d160d9b6f23baffeacb4 (diff)
downloadpodman-5ae940a57427ffe0588d83d3c2a4a1deb7a37208.tar.gz
podman-5ae940a57427ffe0588d83d3c2a4a1deb7a37208.tar.bz2
podman-5ae940a57427ffe0588d83d3c2a4a1deb7a37208.zip
bashcompletion enhancements
* now all podman subcommands can be completed * images can be completed when run as root (not sudo) * bug corrected that made podman_top and podman_tag Signed-off-by: baude <bbaude@redhat.com> Closes: #716 Approved by: mheon
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/podman8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index d9b3442c1..cafb4d8c8 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -1360,7 +1360,7 @@ _podman_rmi() {
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
;;
*)
- __podman_list_images
+ __podman_complete_images --id
;;
esac
}
@@ -1385,7 +1385,7 @@ _podman_stats() {
esac
}
-podman_tag() {
+_podman_tag() {
local options_with_args="
"
local boolean_options="
@@ -1393,7 +1393,7 @@ podman_tag() {
_complete_ "$options_with_args" "$boolean_options"
}
-podman_top() {
+_podman_top() {
local options_with_args="
"
local boolean_options="
@@ -1690,4 +1690,4 @@ _cli_bash_autocomplete() {
return 0
}
-complete -F _cli_bash_autocomplete $PROG
+complete -F _cli_bash_autocomplete podman