Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

complete file/dir names

If the complete list is empty - treat the input argument as a
folder/filename
  • Loading branch information...
commit 7c35810c936116bfa1fb932d86ece85b7b77b660 1 parent 54d4785
@AD7six authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 Vendor/cake.bash
View
12 Vendor/cake.bash
@@ -30,13 +30,21 @@ _cake()
if [[ ${COMP_CWORD} = 2 ]] ; then
opts=$(${cake} Completion.Completion subcommands $prev)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ if [[ $COMPREPLY = "" ]] ; then
+ COMPREPLY=( $(compgen -df -- ${cur}) )
+ return 0
+ fi
return 0
fi
opts=$(${cake} Completion.Completion fuzzy "${COMP_WORDS[@]:1}")
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ if [[ $COMPREPLY = "" ]] ; then
+ COMPREPLY=( $(compgen -df -- ${cur}) )
+ return 0
+ fi
return 0;
-
}
-complete -F _cake cake cakephp
+
+complete -F _cake cake Console/cake
Please sign in to comment.
Something went wrong with that request. Please try again.