added vuejs completions

pull/1303/head
tbhaxor 2019-01-07 01:18:37 +05:30
parent 3b47bc3684
commit 508f82eb95
No known key found for this signature in database
GPG Key ID: 84B09DFE6811617E
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/usr/bin/bash
if command -v vue > /dev/null; then
__vuejs_completion() {
local OPTS=("--version --help create add invoke inspect serve build ui init config upgrade info")
COMPREPLY=()
for _opt_ in ${OPTS[@]}; do
if [[ "$_opt_" == "$2"* ]]; then
COMPREPLY+=("$_opt_")
fi
done
}
complete -F __vuejs_completion vue
fi