From 2c0feab2a13052ca53c4598b3410e36d1d1a74b8 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Sun, 8 Nov 2015 09:35:48 -0800 Subject: [PATCH] Align configuration of bash completion with existing values Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 969ccccc6e..851f30d1e6 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -21,8 +21,8 @@ # setting environment variables. # # DOCKER_COMPLETION_SHOW_NETWORK_IDS -# "false" - Show names only (default) -# "true" - Show names and ids +# "no" - Show names only (default) +# "yes" - Show names and ids # # You can tailor completion for the "events", "history", "inspect", "run", # "rmi" and "save" commands by settings the following environment @@ -150,9 +150,9 @@ __docker_containers_and_images() { __docker_networks() { # By default, only network names are completed. - # Set DOCKER_COMPLETION_SHOW_NETWORK_IDS=true to also complete network IDs. + # Set DOCKER_COMPLETION_SHOW_NETWORK_IDS=yes to also complete network IDs. local fields='$2' - [ "${DOCKER_COMPLETION_SHOW_NETWORK_IDS}" = true ] && fields='$1,$2' + [ "${DOCKER_COMPLETION_SHOW_NETWORK_IDS}" = yes ] && fields='$1,$2' local networks=$(__docker_q network ls --no-trunc | awk "NR>1 {print $fields}") COMPREPLY=( $(compgen -W "$networks" -- "$cur") ) }