Move adb/fastboot bash completion to their projects.
Bug: http://b/74443706 Test: bash completion still works Change-Id: I21e6407f5114b438f5548be259a65d903ea73b62
This commit is contained in:
parent
3790f8b23f
commit
ce18dd448f
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue