mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge 5c664bba80 into 291e96dcd0
This commit is contained in:
commit
3bd1caa03a
1 changed files with 4 additions and 0 deletions
|
|
@ -151,6 +151,10 @@ __docker_complete_info_plugins() {
|
|||
|
||||
__docker_complete_images() {
|
||||
[[ $PREFIX = -* ]] && return 1
|
||||
|
||||
# Prevent autocomplete when there are no images
|
||||
[[ $(_call_program commands docker $docker_options images --format "{{.ID}}") ]] || return 1
|
||||
|
||||
integer ret=1
|
||||
declare -a images
|
||||
images=(${${${(f)${:-"$(_call_program commands docker $docker_options images)"$'\n'}}[2,-1]}/(#b)([^ ]##) ##([^ ]##) ##([^ ]##)*/${match[3]}:${(r:15:: :::)match[2]} in ${match[1]}})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue