Skip to content

Commit f5f1b44

Browse files
committed
Minor update
1 parent 04c515e commit f5f1b44

File tree

1 file changed

+8
-3
lines changed
  • config/bash_completion.d

1 file changed

+8
-3
lines changed

config/bash_completion.d/ee

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,15 @@ function EE_AUTO()
7979
;;
8080

8181
--nginx|--rewrite|--php|--fpm|--mysql)
82-
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) )
82+
if [ "$PREVIOUS" = "--mysql" ]; then
83+
COMPREPLY=( $(compgen -W '$(echo --import-slow-log-interval; 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) )
84+
else
85+
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) )
86+
fi
8387
ee_single
84-
return 0
85-
;;
88+
return 0
89+
;;
90+
8691

8792
--wp)
8893
if [ "$PREVIOUS3" = "create" ] || [ "$PREVIOUS3" = "update" ]; then

0 commit comments

Comments
 (0)