Possible Duplicate:
How to add a directory to my path?
I created a .bash_aliases
file with the following contents:
PATH=$PATH:$HOME/opt/bin
So it adds /home/myuser/opt/bin
to $PATH
.
I made this because I don't have root access to this machine.
When I run apps interactively through the shell command line, they can understand my custom PATH with no problems. But, if I open a app outside the shell command line, for example, choosing from the unity dash, the same apps can't see my custom PATH.
I tried putting shopt -s expand_aliases
in my .bash_aliases
, but without success.
How can I set a PATH for environments other than BASH?