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>
This commit is contained in:
李俊杰
2020-02-03 17:34:21 +08:00
parent e4e5efc12b
commit 27f861f785

View File

@ -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
}