LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   adding to search path (https://www.linuxquestions.org/questions/linux-software-2/adding-to-search-path-283407/)

sefzik 01-28-2005 01:59 PM

adding to search path
 
i want to add a line to my search path
system: P4, distro: redhat, shell: bash

i am logging onto this computer - i want it to search into a folder everytime i log on

here is the situation:

i log on and use: PATH=~/wien2kn/:$PATH; export PATH
so it will search into the wien2kn folder and run the programs within no matter where i am

i want to be able to do this without typing in the command above everytime

i don't have a .bashrc.personal to change (that has already been suggested)

any thoughts?

leonscape 01-28-2005 02:12 PM

Try ~/.bashrc or ~/.bash_profile.

You can also reduce that to one command

export PATH=$PATH:~/wien2kn/

sefzik 01-28-2005 02:26 PM

leonscape - you nailed it!
you are a true guru - the answer was troubling many people here

thanks much!


All times are GMT -5. The time now is 09:38 AM.