From 70b2965f53c3e46dd150f84c7a6c8342264814d1 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 6 Jan 2014 13:10:43 +0530 Subject: [PATCH] Change Auto Completion As Per New EasyEngine Syntax --- etc/bash_completion.d/ee | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/etc/bash_completion.d/ee b/etc/bash_completion.d/ee index b3448672..314515da 100644 --- a/etc/bash_completion.d/ee +++ b/etc/bash_completion.d/ee @@ -18,7 +18,7 @@ EEAUTO() # List Of Suggested Words easyengine|ee) - COMPREPLY=( $(compgen -W "info help version system site" -- $CURRENT) ) + COMPREPLY=( $(compgen -W "version info help system site" -- $CURRENT) ) return 0 ;; @@ -42,19 +42,11 @@ EEAUTO() return 0 ;; - show|enable|db|files) + show|enable|delete) COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) ) return 0 ;; - all) - if [ "$EECOMMON" = "delete" ] - then - COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) ) - fi - return 0 - ;; - info) if [ "$EECOMMON" = "site" ] then @@ -68,21 +60,6 @@ EEAUTO() return 0 ;; - create) - COMPREPLY=( $( compgen -W "html php wp wpsubdir wpsubdomain" -- $CURRENT ) ) - return 0 - ;; - - wp|wpsubdir|wpsubdomain) - COMPREPLY=( $( compgen -W "basic w3tc wpsc wpfc" -- $CURRENT ) ) - return 0 - ;; - - delete) - COMPREPLY=( $( compgen -W "files db all" -- $CURRENT ) ) - return 0 - ;; - esac }