mirror of
https://github.com/containers/podman.git
synced 2025-08-02 17:22:30 +08:00
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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user