Add bash completion for docker rename
Signed-off-by: Mike Dillon <mike@embody.org>
This commit is contained in:
parent
eb0d65933d
commit
ded88a3170
1 changed files with 8 additions and 0 deletions
|
@ -552,6 +552,13 @@ _docker_push() {
|
|||
fi
|
||||
}
|
||||
|
||||
_docker_rename() {
|
||||
local counter=$(__docker_pos_first_nonflag)
|
||||
if [ $cword -eq $counter ]; then
|
||||
__docker_containers_all
|
||||
fi
|
||||
}
|
||||
|
||||
_docker_restart() {
|
||||
case "$prev" in
|
||||
--time|-t)
|
||||
|
@ -914,6 +921,7 @@ _docker() {
|
|||
ps
|
||||
pull
|
||||
push
|
||||
rename
|
||||
restart
|
||||
rm
|
||||
rmi
|
||||
|
|
Loading…
Reference in a new issue