From a3273811a345cbc80cde8a7f27d1e4a429bb9b44 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Fri, 19 Sep 2014 18:32:53 +0530 Subject: [PATCH] Added autocompletion for MySQL slow log, Fixes #310 --- config/bash_completion.d/ee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/bash_completion.d/ee b/config/bash_completion.d/ee index aa2a1dd5..d21b1907 100644 --- a/config/bash_completion.d/ee +++ b/config/bash_completion.d/ee @@ -15,7 +15,7 @@ function EE_AUTO() # List of suggested words easyengine|ee) - COMPREPLY=( $(compgen -W '$(echo version help info update; command find /usr/local/lib/easyengine/modules/ -maxdepth 1 -type d -printf "%P " 2> /dev/null)' -- $CURRENT) ) + COMPREPLY=( $(compgen -W '$(echo version help info update import-slow-log; command find /usr/local/lib/easyengine/modules/ -maxdepth 1 -type d -printf "%P " 2> /dev/null)' -- $CURRENT) ) return 0 ;; @@ -65,6 +65,10 @@ function EE_AUTO() COMPREPLY=( $(compgen -W '$(command cd /usr/local/lib/easyengine/modules/debug/; find -type f | grep debug | cut -d'_' -f4 | cut -d '.' -f1 | sed 's/^/--/g' 2> /dev/null)' -- $CURRENT) ) return 0 ;; + --mysql) + COMPREPLY=( $(compgen -W '$(echo --import-slow-log-time=; cd /usr/local/ib/easyengine/modules/debug/; find -type f | grep debug | cut -d'_' -f4 | cut -d '.' -f1 | sed 's/^/--/g' 2> /dev/null)' -- $CURRENT) ) + return 0 + ;; --wp) if [ "$PREVIOUS3" = "create" ]; then