summaryrefslogtreecommitdiff
path: root/completions/bash/podman
diff options
context:
space:
mode:
author李俊杰 <phpor@users.noreply.github.com>2020-02-03 17:34:21 +0800
committer李俊杰 <phpor@users.noreply.github.com>2020-02-14 00:10:37 +0800
commit27f861f78554ccc199eaeb22072439d21ac49a45 (patch)
tree4ed6c4fc3a1befbd2d27b8dd16e6e0c3a1aef36b /completions/bash/podman
parente4e5efc12b7902a22561170ca59f3da90b7b80ce (diff)
downloadpodman-27f861f78554ccc199eaeb22072439d21ac49a45.tar.gz
podman-27f861f78554ccc199eaeb22072439d21ac49a45.tar.bz2
podman-27f861f78554ccc199eaeb22072439d21ac49a45.zip
Fixed a bug about bash automatically complete
When I input podman start in bash , and then type tab , cannot automatically complete container name , this pr will fix the bug . Signed-off-by: 李俊杰 <phpor@users.noreply.github.com>
Diffstat (limited to 'completions/bash/podman')
-rw-r--r--completions/bash/podman4
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index d1dcef0a4..10d40a0c9 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -104,7 +104,7 @@ __podman_complete_containers_running() {
}
__podman_complete_containers_stopped() {
- __podman_complete_containers "$@" --filter status=exited
+ __podman_complete_containers "$@" --all --filter status=exited
}
__podman_complete_containers_unpauseable() {
@@ -2448,7 +2448,7 @@ _podman_start() {
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
;;
*)
- __podman_complete_container_names
+ __podman_complete_containers_stopped
;;
esac
}