Merge "Move adb/fastboot bash completion to their projects."

This commit is contained in:
Elliott Hughes 2018-04-04 19:44:37 +00:00 committed by Gerrit Code Review
commit fc1471cd29
1 changed files with 4 additions and 5 deletions

View File

@ -350,13 +350,12 @@ function addcompletions()
return return
fi fi
dir="sdk/bash_completion" for f in system/core/adb/adb.bash system/core/fastboot/fastboot.bash; do
if [ -d ${dir} ]; then if [ -f $f ]; then
for f in `/bin/ls ${dir}/[a-z]*.bash 2> /dev/null`; do
echo "including $f" echo "including $f"
. $f . $f
done fi
fi done
complete -C "bit --tab" bit complete -C "bit --tab" bit
} }