File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,18 @@ __comp_phpcc_command(){
4545 options+=( shebang-less )
4646
4747 case " ${prev} " in
48- --banner|--dir|--file|--main|--output)
49- # if a previous typed option expects a file or directory path,
50- # let the reply empty so that readline's default completion is used
48+ # previous typed option expects a file path
49+ --banner|--file|--main|--output)
50+ compgen -d -f ${cur}
51+ ;;
52+
53+ # previous typed option expects a directory path
54+ --dir)
55+ compgen -d ${cur}
56+ ;;
57+
58+ # previous typed option is not elligible to completion
59+ --meta)
5160 ;;
5261
5362 * )
@@ -61,4 +70,4 @@ __comp_phpcc_command(){
6170 ;;
6271 esac
6372}
64- complete -o default - C __comp_phpcc_command phpcc
73+ complete -C __comp_phpcc_command phpcc
You can’t perform that action at this time.
0 commit comments