commit | 5e60e6de8ae827480452b1e05255a24a5c031576 | [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 | 2aa2b9c01e3097569b50b55f9f741ab63e3117dd | |
parent | 7cd4c4f039f8c2dabf6cf7a0c6ab16cc1fa352ff [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