I ran these 2 commands simply in the terminal:
export PATH="$PATH:/home/milkncookiez/Developer/android-studio/bin"
export PATH="$PATH:/home/milkncookiez/Developer/PhpStorm/bin"
in the 2 bin folders I have the files studio.sh and phpstorm.sh. In that same terminal session when I simply wrote the name of the files - the programs were ran.
When I opened another terminal - did not work. I added these both lines in the ~/.profile file, opened a new terminal session but it still does not work. How do I set the 2 variable changes to be permanent for all terminal sessions?
/etc/profileshould preferably not be edited directly. Better to add a new/etc/profile.d/<somename>.shfile. Anyway, given the paths added toPATHin this case,~/.profileis probably the suitable choice. – Gunnar Hjalmarsson Nov 20 '14 at 09:10