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/profile
should preferably not be edited directly. Better to add a new/etc/profile.d/<somename>.sh
file. Anyway, given the paths added toPATH
in this case,~/.profile
is probably the suitable choice. – Gunnar Hjalmarsson Nov 20 '14 at 09:10