Browse Source

updated autocompletion for ee log command

bugfixes
harshadyeola 10 years ago
parent
commit
8eecc88ad4
  1. 11
      config/bash_completion.d/ee_auto.rc

11
config/bash_completion.d/ee_auto.rc

@ -59,7 +59,7 @@ _ee_complete()
"log")
COMPREPLY=( $(compgen \
-W "--mysql --php --nginx --all" \
-W "$(command find /etc/nginx/sites-enabled/ -type l -printf "%P " 2> /dev/null) --mysql --php --nginx --all" \
-- $cur) )
;;
@ -117,6 +117,15 @@ _ee_complete()
-- $cur) )
fi
if [ ${COMP_WORDS[1]} == "log" ] && ([ "$prev" != "--access" ] || [ "$prev" != "--nginx" ] || [ "$prev" != "--php" ] || [ "$prev" != "--fpm" ] || [ "$prev" != "--mysql" ] || [ "$prev" != "-i" ] || ["$prev" != "--interactive" ] || ["$prev" != "--stop" ]); then
retlist="--all --wp --rewrite -i --all=off --wp=off --rewrite=off"
ret="${retlist[@]/$prev}"
COMPREPLY=( $(compgen \
-W "$(echo $ret)" \
-- $cur) )
fi
elif [ $COMP_CWORD -eq 4 ]; then
case "$mprev" in
# HANDLE EVERYTHING AFTER THE THIRD LEVEL NAMESPACE

Loading…
Cancel
Save