From 62b6633b08471c47d1190e21731e582a3dfe26f8 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Wed, 8 Oct 2014 18:18:28 +0530 Subject: [PATCH] updated autocomplete for ee site update --- config/bash_completion.d/ee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/bash_completion.d/ee b/config/bash_completion.d/ee index baf5dad3..a2e94e70 100644 --- a/config/bash_completion.d/ee +++ b/config/bash_completion.d/ee @@ -102,8 +102,10 @@ function EE_AUTO() ;; *) - if [ "$PREVIOUS2" = "create" ] || [ "$PREVIOUS2" = "update" ]; then + if [ "$PREVIOUS2" = "create" ]; then COMPREPLY=( $( compgen -W "--html --php --mysql --wp --wpsubdir --wpsubdomain" -- $CURRENT ) ) + elif [ "$PREVIOUS2" = "update" ]; then + COMPREPLY=( $( compgen -W "--wp --wpsubdir --wpsubdomain" -- $CURRENT ) ) elif [ "$PREVIOUS2" = "delete" ]; then COMPREPLY=( $( compgen -W "--db --all --files --no-prompt" -- $CURRENT ) ) fi