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

am: c2f88c99b9

Change-Id: Ife33f139f9440b3b151f1eb7c0c219767bd484fa
This commit is contained in:
Elliott Hughes 2018-04-04 13:08:33 -07:00 committed by android-build-merger
commit 04a9640f72
1 changed files with 4 additions and 5 deletions

View File

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