2

I looked around some sites and yielded no success. I tried to modify .bashrc:

# User specific aliases and functions
export PATH="~/android-studio/bin/:$PATH"

and after I typed studio.sh on the shell it says no such file or directory.

3
  • is studio.sh executeable? And did you re-source your bashrc (source ~/.bashrc). Lastly I normally use ${HOME} instead of ~ for my path variable. Commented Feb 2, 2016 at 16:53
  • Yes, as I could run file/path/to/studio.sh to start up android studio. what do you mean by re-sourcing bashrc? Commented Feb 2, 2016 at 20:27
  • just type "source ~/.bashrc" After you change your bashrc, nothing happens. It only takes effect when you source it, which happens when you open a new terminal Commented Feb 3, 2016 at 0:32

1 Answer 1

1

add the following line to .bashrc

export PATH=~/Documents/android-studio/bin:$PATH

save and execute the following command....

source ~/.bashrc

enter studio.sh and it should open

2
  • 3
    The issue in the question is the tilde, and the fact that it's not expanded to the home directory when it's quoted.
    – Kusalananda
    Commented Mar 24, 2018 at 22:18
  • @Thomas How does a suggestion which solves the problem not provide an answer the question? Taking this to review is ridiculous. Commented Mar 25, 2018 at 11:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .