Browse Source

Added autocompletion for MySQL slow log, Fixes #310

old-stable
gau1991 10 years ago
parent
commit
b56e7a2e58
  1. 6
      config/bash_completion.d/ee

6
config/bash_completion.d/ee

@ -15,7 +15,7 @@ function EE_AUTO()
# List of suggested words # List of suggested words
easyengine|ee) 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 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) ) 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 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) --wp)
if [ "$PREVIOUS3" = "create" ]; then if [ "$PREVIOUS3" = "create" ]; then

Loading…
Cancel
Save