Merge pull request #1452 from tbhaxor/laravel-completions

added laravel completions
This commit is contained in:
Nils Winkler
2019-12-02 09:05:35 +01:00
committed by GitHub

View File

@@ -0,0 +1,16 @@
#!/usr/bin/bash
if command -v laravel > /dev/null; then
__laravel_completion() {
local OPTS=("-h --help -q --quiet --ansi --no-ansi -n --no-interaction -v -vv -vvv --verbose help list new")
COMPREPLY=()
for _opt_ in ${OPTS[@]}; do
if [[ "$_opt_" == "$2"* ]]; then
COMPREPLY+=("$_opt_")
fi
done
}
complete -F __laravel_completion laravel
fi