Browse Source

Fix autocomplete in ee system install all & ee site delete all

old-stable
Mitesh Shah 12 years ago
parent
commit
357107b13d
  1. 13
      etc/bash_completion.d/ee

13
etc/bash_completion.d/ee

@ -10,6 +10,9 @@ EEAUTO()
# Get Previous Word
local PREVIOUS=${COMP_WORDS[COMP_CWORD-1]}
# Use All Word Twice
local EEALL=${COMP_WORDS[COMP_CWORD-2]}
# List Of Suggested Words
case "$PREVIOUS" in
@ -45,8 +48,16 @@ EEAUTO()
return 0
;;
show|info|enable|db|files|all)
show|info|enable|db|files)
COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) )
return 0
;;
all)
if [ "$EEALL" = "delete" ]
then
COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) )
fi
return 0
;;

Loading…
Cancel
Save