1

I can't figure out what's wrong with my PC! I'm quite new to Ubuntu.

I need to add android tools to the PATH variable so I add the following lines to .bashrc file:

PATH=${PATH}:/home/user/Program\ Files/android-sdks/platform-tools:/home/user/Program\ Files/android-sdks/tools

after that I run source .bashrc and when I run echo $PATH the android tools shows up in the $PATH variable.

But when I logout android tools are gone from the $PATH variable and I have to run source .bashrc to load them again there. Any ideas why is it happening?

1
  • can you edit your question to include the output of the command: echo $SHELL ? Dec 30, 2013 at 22:32

1 Answer 1

1

Add this to your ~/.profile (or ~/.bash_profile, whichever is present):

source ~/.bashrc
2
  • 1
    May I suggest [[ -r ~/.bashrc ]] && . ~/.bashrc instead ? Purely a personal preferences of course. :') Dec 31, 2013 at 0:50
  • Yes, that's better. Dec 31, 2013 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.