How to modify PATH variable for X11 during log-in?

listed in answer

How to modify PATH variable for X11 during log-in?
0 votes, 0.00 avg. rating (0% score)

ANSWER:

You can change $PATH easily for your user account (thus without admin rights). It depends on what kind of shell you have, to find the shell do: echo $SHELL, most likely you have /bin/bash(that echo $SHELL behaves funny sometimes, if so try ps).

If you shell is bash, you want to modify ~/.bash_profile by adding things like:

export PATH=$PATH:/path/to/something/:/path/to/something/else/

or

export PATH=/path/to/something/:/path/to/something/else/:$PATH

If your shell is not bash, you need to modify other files in your user directory in a slightly different way, e.g. tcsh shell commands for the files you need to modify for tcsh.

If another shell is used (unlikely), just use your favorite search engine to check how to modify $PATH for that shell and do this in the per-user files, ~/.something. You don’t need admin rights to modify these files.

by lupincho from http://superuser.com/questions/411025