commit | 0bd3432c5b4bfdfc89ca775fba9cc9f7db67a43f | [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 | 17a02a33bba44ebc7517a11dfa6839b938e1e153 [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