Bash – How to set the Android bash path in ZSH

androidbashunixzsh

Looking through the Cordova Android docs, I see this line

You need to add the path to your Android SDK platform-tools and tools directory. In my example I will use "/Development/android-sdk-macosx" as the directory the SDK is installed in. Add the following line:

export PATH=${PATH}:/Development/android-sdk-macosx/platform-tools:/Development/android-sdk-macosx/tools

How do I set that up in ZSH?

Best Answer

I use this:

PATH=$PATH:"$HOME/Documents/Android/SDK/platform-tools"

Previously I had to use this to work (when I re-installed the OS X and Zsh, the problem disappeared):

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:$HOME/Documents/Android/SDK/platform-tools"
Related Question