commit | 500e223f40fcff517282de2d12ec6a30f9bae7e5 | [log] [tgz] |
---|---|---|
author | Jim Tang <jimtang@google.com> | Tue Jun 19 19:11:48 2018 +0800 |
committer | Jim Tang <jimtang@google.com> | Tue Jul 17 14:19:35 2018 +0800 |
tree | ab343068b9081a0ea30ef4b3679cf3bcb35fe3f2 | |
parent | 7f3e15fd098fb6a9717ba9d244010a4c9c5386bf [diff] |
Adb and fastboot completion supports zsh users. Builtin command "type" in zsh doesn't support -t option and this is resolved by checking the shell type prior to sourcing them. Instead of using "type -t" explicitly, check_type() knows the the type of the current shell and behaves accordingly. Bug: 110629292 Test: (zsh) source build/envsetup.sh && lunch aosp_arm (bash) source build/envsetup.sh && lunch aosp_arm Change-Id: Ie39e130e9cc87135cfd522abedba11ad5ac25261