From ce18dd448f3927f1aa3e29d55648fd4daf204bea Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 3 Apr 2018 13:49:48 -0700 Subject: [PATCH] Move adb/fastboot bash completion to their projects. Bug: http://b/74443706 Test: bash completion still works Change-Id: I21e6407f5114b438f5548be259a65d903ea73b62 --- envsetup.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index cf619505a..906f5e5b5 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -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 }