This question already has an answer here:
Is it possible to run my scripts located in
~/scripts from anywhere?
Say i want to run
./scriptname regardless of my current working directory.
You can add
This answer shows how to add
to your the end of your
I usually add
to my path and then create symlinks to the scripts an programs I want to have available in my session.
Note that the path files have a precedence. If I already have installed eclipse through ubuntu, it will first search eclipse in all other places than in
Make sure the scripts in your scripts directory are executable otherwise the export won't have an effect.
You can look at the available paths by typing
If you want to see all environment variables type