Merge "Add b autocomplete to envsetup" am: 522df8591f am: a04ddc9f62 am: 0baa112b53

Original change: https://android-review.googlesource.com/c/platform/build/+/2202476

Change-Id: Ib643fad03ac17d8fcddfed55ce95c4b17128053b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-09-01 15:39:47 +00:00
committed by Automerger Merge Worker

View File

@@ -398,6 +398,7 @@ function addcompletions()
packages/modules/adb/adb.bash packages/modules/adb/adb.bash
system/core/fastboot/fastboot.bash system/core/fastboot/fastboot.bash
tools/asuite/asuite.sh tools/asuite/asuite.sh
prebuilts/bazel/common/bazel-complete.bash
) )
# Completion can be disabled selectively to allow users to use non-standard completion. # Completion can be disabled selectively to allow users to use non-standard completion.
# e.g. # e.g.
@@ -419,6 +420,8 @@ function addcompletions()
if [ -z "$ZSH_VERSION" ]; then if [ -z "$ZSH_VERSION" ]; then
# Doesn't work in zsh. # Doesn't work in zsh.
complete -o nospace -F _croot croot complete -o nospace -F _croot croot
# TODO(b/244559459): Support b autocompletion for zsh
complete -F _bazel__complete -o nospace b
fi fi
complete -F _lunch lunch complete -F _lunch lunch