I was working on amending my ANDROID_HOME
and PATH
to begin working with Cordova for mobile application development. I was having trouble with export $PATH
returning a not a valid identifier
error. I changed a $PATH
reference in a line in the .bash_profile
to PATH
on recommendation and now I'm entirely unable to open .bash_profile
. I am using Mac OS X Yosemite. I receive the following error:
-bash: open: command not found
From research, it's likely a typo in the .bash_profile
but I'm unaware of how I can rectify this without being able to open the .bash_profile itself, can anybody help? Also when attempting to call Cordova e.g. cordova add platform android
I receive -bash: cordova: command not found
after it previously functioned correctly?
My .bash_profile
included
export ANDROID_HOME=/Development/android-sdk-macosx export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
I believe I mistakenly removed $ from the 2nd line, leaving PATH={PATH}.
As I am using Mac OS X all dot files are hidden, when attempting to show . files I receive the error -bash: defaults: command not found
.
Thanks