I have tried to set env var in Mac.
$ open ~/.bash_profile
shows:
export ADB_PATH=~/MyWorkspace/sdk/platform-tools/adb
export PATH=$PATH:$ADB_PATH
I have restarted the machine but no effect:
$ adb
-bash: adb: command not found
what can be wrong?
update
have tried this too, with no help:
export ADB_PATH=~/MyWorkspace/sdk/platform-tools
export PATH=$PATH:$ADB_PATH/adb
or
export PATH=$PATH:~/MyWorkspace/sdk/platform-tools
adb
program installed in the directory~/MyWorkspace/sdk/platform-tools/adb/
?adb
in~/MyWorkspace/sdk/platform-tools/
. Just checked nowsource ~/.bash_profile.
If you sure your ~/.bash_profile is correct, try looking at login files that are loaded after ~/.bash_profile and make sure they don't reset $PATH. ~/.bash_profile will not be used if you start a sub-shell.